From 451637a76db5440a2cc3546c76124ba08da68d91 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 15 Apr 2009 09:28:37 +0000 Subject: - remove leading spaces from draglayer's rows --- program/js/list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'program') 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) + '
'; + // remove leading spaces + subject = subject.replace(/^\s+/i, ''); + // truncate line to 50 characters + names += (subject.length > 50 ? subject.substring(0, 50)+'...' : subject) + '
'; break; } c++; -- cgit v1.2.3