From 6702cf29abc664618d302dede7975e2a5ebf7aee Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 6 Sep 2010 01:11:53 +0200 Subject: [PATCH] some more improvements for column drag/drop --- build/js/ox.ui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 0bfb4226..b3ab8f17 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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) {