summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-15 09:28:37 +0000
committeralecpl <alec@alec.pl>2009-04-15 09:28:37 +0000
commit451637a76db5440a2cc3546c76124ba08da68d91 (patch)
tree9b5413340c751cce6589f18bdb8fb7604edb8387
parent91df1995cd986d5ebf227e4b5489d2b29bd92601 (diff)
- remove leading spaces from draglayer's rows
-rw-r--r--program/js/list.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 7d16080c5..8e8862924 100644
--- a/program/js/list.js
+++ b/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++;