summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-12 18:50:24 +0000
committeralecpl <alec@alec.pl>2010-11-12 18:50:24 +0000
commitef17c54e739676a73fff69fa85ea39a3a516fcab (patch)
tree9262a0fc17c60cc11308b84477af3c4a8a56247c /program/js/list.js
parent5d238918a7876561d8b1c112aa4267bbed3d8587 (diff)
- Fix IE issue when replacing spaces doesn't work
- Some code improvements
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 029f0cd20..aabba0842 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1151,7 +1151,7 @@ drag_mouse_move: function(e)
subject = $(node).text();
// remove leading spaces
- subject = subject.replace(/^\s+/i, '');
+ subject = $.trim(subject);
// truncate line to 50 characters
subject = (subject.length > 50 ? subject.substring(0, 50) + '...' : subject);