summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-06-01 06:32:52 +0000
committerthomascube <thomas@roundcube.net>2010-06-01 06:32:52 +0000
commit8e32dcd9e8c05d5df2870089700848475a6fed2b (patch)
tree43905ce86631123ba1b1c0e722787f30fffeb095 /program/js/list.js
parentf5bb9b433d4abf5ab69ee710894f5eb9fc3b6510 (diff)
Fix subject column after re-arranging cols
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index a38890e74..33095868e 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1393,6 +1393,10 @@ column_replace: function(from, to)
// update subject column position
if (this.subject_col == from)
this.subject_col = to > from ? to - 1 : to;
+ else if (this.subject_col < from && to <= this.subject_col)
+ this.subject_col++;
+ else if (this.subject_col > from && to >= this.subject_col)
+ this.subject_col--;
this.triggerEvent('column_replace');
}