From b1ee9bcc067a2da9afde13c127775dc391b4cd2b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 22 Jul 2013 08:23:50 +0000 Subject: [PATCH] fix table list css when dragging columns --- source/Ox.UI/js/List/TableList.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 7a7ac781..cf676386 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -578,11 +578,11 @@ Ox.TableList = function(options, self) { startPos: getColumnPositionById(id) } self.drag.stopPos = self.drag.startPos; - $('.' + getColumnClassName(id)).css({opacity: 0.25}); - self.drag.startPos > 0 && self.$heads[self.drag.startPos].prev().children().eq(2).css({opacity: 0.25}); - self.$heads[self.drag.startPos].next().children().eq(0).css({opacity: 0.25}); + $('.' + getColumnClassName(id)).css({opacity: 0.5}); + self.drag.startPos > 0 && self.$heads[self.drag.startPos].prev().children().eq(2).css({opacity: 0.5}); + self.$heads[self.drag.startPos].next().children().eq(0).css({opacity: 0.5}); self.$heads[self.drag.startPos].addClass('OxDrag').css({ // fixme: why does the class not work? - cursor: 'move' + cursor: 'ew-resize' }); } @@ -642,7 +642,7 @@ Ox.TableList = function(options, self) { constructHead(); $('.' + getColumnClassName(id)).css({opacity: 1}); self.$heads[self.drag.stopPos].removeClass('OxDrag').css({ - cursor: 'pointer' + cursor: 'default' }); that.$body.clearCache(); triggerColumnChangeEvent(); @@ -809,8 +809,8 @@ Ox.TableList = function(options, self) { pos > 0 && self.$heads[pos].prev().children().eq(2).addClass('OxSelected'); self.$heads[pos].next().children().eq(0).addClass('OxSelected'); if (pos == stopPos) { - pos > 0 && self.$heads[pos].prev().children().eq(2).css({opacity: 0.25}); - self.$heads[pos].next().children().eq(0).css({opacity: 0.25}); + pos > 0 && self.$heads[pos].prev().children().eq(2).css({opacity: 0.5}); + self.$heads[pos].next().children().eq(0).css({opacity: 0.5}); } } }