summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/list.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-01 06:32:52 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-01 06:32:52 +0000
commit1ed7d89063311ee3bca1afc76aa502b39d95d196 (patch)
treea8078d233cb99baefa84f8f8efa2130a0e9e96d1 /roundcubemail/program/js/list.js
parent76c3df3f7ec8dd44fa1e5889cc7f8f57cda75ef3 (diff)
Fix subject column after re-arranging cols
git-svn-id: https://svn.roundcube.net/trunk@3691 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/list.js')
-rw-r--r--roundcubemail/program/js/list.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index a38890e74..33095868e 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/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');
}