www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 62bc5830eb2a9cd81a52b3283b3ea69e9d0fb9fb
parent 04fa4a09434044f42c28ce92cbab03b569a8418a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 18 Feb 2014 18:43:58 -0500

Fix some harmless errors in the console editing autocomplete fields

"comment.split is not a function"

Diffstat:
Mchrome/content/zotero/bindings/itembox.xml | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml @@ -1446,12 +1446,13 @@ params.itemID = itemID; params.creatorTypeID = creatorTypeID; } + + t.setAttribute('ontextentered', + 'document.getBindingParent(this).handleCreatorAutoCompleteSelect(this)'); }; t.setAttribute( 'autocompletesearchparam', JSON.stringify(params) ); - t.setAttribute('ontextentered', - 'document.getBindingParent(this).handleCreatorAutoCompleteSelect(this)'); } } var box = elem.parentNode; @@ -1489,6 +1490,7 @@ <![CDATA[ var comment = false; var controller = textbox.controller; + if (!controller.matchCount) return; for (var i=0; i<controller.matchCount; i++) {