fix a regression that would affect adding, moving and removing list columns

This commit is contained in:
rlx 2011-11-06 00:24:42 +00:00
parent 5c7a19ac01
commit 01306dd5ae

View file

@ -656,7 +656,7 @@ Ox.TextList = function(options, self) {
? $('.OxHeadCell' + stopSelector).next() ? $('.OxHeadCell' + stopSelector).next()
: $('.OxHeadCell' + stopSelector)); : $('.OxHeadCell' + stopSelector));
$resize.detach().insertAfter($column); $resize.detach().insertAfter($column);
that.$body.find('.OxItem').each(function() { that.$body.$element.find('.OxItem').each(function() {
var $this = $(this); var $this = $(this);
$this.children(startSelector).detach()[insert]( $this.children(startSelector).detach()[insert](
$this.children(stopSelector) $this.children(stopSelector)
@ -695,7 +695,7 @@ Ox.TextList = function(options, self) {
that.$head.$content.empty(); that.$head.$content.empty();
constructHead(); constructHead();
itemWidth = getItemWidth(); itemWidth = getItemWidth();
that.$body.find('.OxItem').each(function() { that.$body.$element.find('.OxItem').each(function() {
var $this = $(this); var $this = $(this);
$this.children(selector).remove(); $this.children(selector).remove();
$this.css({width: itemWidth + 'px'}); $this.css({width: itemWidth + 'px'});