From 2bd0019261f98a631a21e19463553272c1a2965f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 Aug 2013 17:09:41 -0400 Subject: [PATCH] 'let' is valid in XBL, just not in event attributes, I guess --- chrome/content/zotero/bindings/itembox.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index f7718ac636..55bbb0e7bd 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1423,7 +1423,7 @@ t.setAttribute('type', 'autocomplete'); t.setAttribute('autocompletesearch', 'zotero'); - var params = { + let params = { fieldName: fieldName, libraryID: this.item.libraryID }; @@ -1432,8 +1432,8 @@ // Include itemID and creatorTypeID so the autocomplete can // avoid showing results for creators already set on the item - var row = Zotero.getAncestorByTagName(elem, 'row'); - var creatorTypeID = parseInt( + let row = Zotero.getAncestorByTagName(elem, 'row'); + let creatorTypeID = parseInt( row.getElementsByClassName('creator-type-label')[0] .getAttribute('typeid') );