some more improvements for column drag/drop
This commit is contained in:
parent
3e289f04f4
commit
6702cf29ab
1 changed files with 5 additions and 1 deletions
|
@ -6764,7 +6764,7 @@ requires
|
||||||
$column = $('.OxTitle' + startClassName),
|
$column = $('.OxTitle' + startClassName),
|
||||||
$order = $column.next(),
|
$order = $column.next(),
|
||||||
$resize = $order.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));
|
$column.detach()[insert](insert == 'insertAfter' ? $('.OxTitle' + stopClassName).next().next() : $('.OxTitle' + stopClassName));
|
||||||
$order.detach().insertAfter($column);
|
$order.detach().insertAfter($column);
|
||||||
$resize.detach().insertAfter($order);
|
$resize.detach().insertAfter($order);
|
||||||
|
@ -6772,6 +6772,10 @@ requires
|
||||||
var $v = $(v);
|
var $v = $(v);
|
||||||
$v.children(startClassName).detach()[insert]($v.children(stopClassName));
|
$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) {
|
function removeColumn(id) {
|
||||||
|
|
Loading…
Reference in a new issue