some more improvements for column drag/drop

This commit is contained in:
rolux 2010-09-06 01:11:53 +02:00
parent fb745be04b
commit 5e290e410d

View File

@ -6764,7 +6764,7 @@ requires
$column = $('.OxTitle' + startClassName),
$order = $column.next(),
$resize = $order.next();
Ox.print(startClassName, 'before', stopClassName)
Ox.print(startClassName, insert, stopClassName)
$column.detach()[insert](insert == 'insertAfter' ? $('.OxTitle' + stopClassName).next().next() : $('.OxTitle' + stopClassName));
$order.detach().insertAfter($column);
$resize.detach().insertAfter($order);
@ -6772,6 +6772,10 @@ requires
var $v = $(v);
$v.children(startClassName).detach()[insert]($v.children(stopClassName));
});
column = self.visibleColumns.splice(startPos, 1)[0],
width = self.columnWidths.splice(startPos, 1)[0];
self.visibleColumns.splice(stopPos, 0, column);
self.columnWidths.splice(stopPos, 0, width);
}
function removeColumn(id) {