summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-15 09:28:37 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-04-15 09:28:37 +0000
commit635bd2c5ffdf5f7abeae8fb69fc6d4324481adbe (patch)
treef2115e12dd3c9555a02252edf0b82bbcca2766b8
parent1a486671f73fc42c1fadb66c9aacbd2c3a9b03e2 (diff)
- remove leading spaces from draglayer's rows
git-svn-id: https://svn.roundcube.net/trunk@2392 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/list.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index 7d16080c5..8e8862924 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/program/js/list.js
@@ -755,7 +755,10 @@ drag_mouse_move: function(e)
(this.subject_col < 0 || (this.subject_col >= 0 && this.subject_col == c)))
{
subject = node.nodeType==3 ? node.data : node.innerHTML;
- names += (subject.length > 50 ? subject.substring(0, 50)+'...' : subject) + '<br />';
+ // remove leading spaces
+ subject = subject.replace(/^\s+/i, '');
+ // truncate line to 50 characters
+ names += (subject.length > 50 ? subject.substring(0, 50)+'...' : subject) + '<br />';
break;
}
c++;