From 82b789e083b227f267ef9e6e6fd971a47bbf7098 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 28 Feb 2017 03:33:18 -0500 Subject: [PATCH] Always show items-loading message switching collections in citation dialogs Previously it only showed if library data hadn't been loaded, but sorting can also take a little time when switching between collections. --- chrome/content/zotero/selectItemsDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/selectItemsDialog.js b/chrome/content/zotero/selectItemsDialog.js index f296151b4..6fb94f6d3 100644 --- a/chrome/content/zotero/selectItemsDialog.js +++ b/chrome/content/zotero/selectItemsDialog.js @@ -81,11 +81,12 @@ var onCollectionSelected = Zotero.Promise.coroutine(function* () collectionTreeRow.setSearch(''); Zotero.Prefs.set('lastViewedFolder', collectionTreeRow.id); + setItemsPaneMessage(Zotero.getString('pane.items.loading')); + // Load library data if necessary var library = Zotero.Libraries.get(collectionTreeRow.ref.libraryID); if (!library.getDataLoaded('item')) { Zotero.debug("Waiting for items to load for library " + library.libraryID); - setItemsPaneMessage(Zotero.getString('pane.items.loading')); yield library.waitForDataLoad('item'); }