commit 3faa8949efef403eeec5193e0a8d127473c6447a
parent 1e59c5ab7e57c1f1ccc2e2762c2a827d9ec3a22b
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 15 Mar 2013 04:39:57 -0400
Fix glitch entering tag with whitespace
If an existing colored tag was added to an item with whitespace around it, the
tag didn't immediately show up with a color.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/bindings/tagsbox.xml b/chrome/content/zotero/bindings/tagsbox.xml
@@ -638,6 +638,7 @@
var tabindex = textbox.getAttribute('ztabindex');
var oldValue = textbox.getAttribute('value');
+ textbox.value = textbox.value.trim();
var value = textbox.value;
var tagsbox = Zotero.getAncestorByTagName(textbox, 'tagsbox');