www

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

commit f906b4226d02e6396dc43219102f3b583f108289
parent 220cf2c29b51631c367ead1d085ef37006314ed6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 28 Mar 2016 03:12:52 -0400

Fix loading of Edit Bibliography window in Firefox 45

Edit textbox is still broken, at least for some items.

Diffstat:
Mchrome/content/zotero/integration/editBibliographyDialog.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/integration/editBibliographyDialog.js b/chrome/content/zotero/integration/editBibliographyDialog.js @@ -253,8 +253,8 @@ var Zotero_Bibliography_Dialog = new function () { * Gets selected item IDs from list box on right */ function _getSelectedListItemIDs() { - return [bibEditInterface.bibliography[0].entry_ids[item.value][0] - for each(item in _itemList.selectedItems)]; + return Array.from(_itemList.selectedItems) + .map(item => bibEditInterface.bibliography[0].entry_ids[item.value][0]); } /** @@ -305,7 +305,7 @@ var Zotero_Bibliography_Dialog = new function () { */ function _loadItems() { var itemIDs = bibEditInterface.bibliography[0].entry_ids; - var items = [Zotero.Cite.getItem(itemID[0]) for each(itemID in itemIDs)]; + var items = itemIDs.map(itemID => Zotero.Cite.getItem(itemID[0])); // delete all existing items from list var itemList = document.getElementById("item-list");