From 8e32dcd9e8c05d5df2870089700848475a6fed2b Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 01 Jun 2010 02:32:52 -0400
Subject: [PATCH] Fix subject column after re-arranging cols

---
 program/js/list.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/js/list.js b/program/js/list.js
index a38890e..3309586 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1393,6 +1393,10 @@
   // 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');
 }

--
Gitblit v1.9.1