commit 82b789e083b227f267ef9e6e6fd971a47bbf7098
parent 737f54a70c703d57dc842f8fbf23b269a10a4790
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 28 Feb 2017 03:33:18 -0500
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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');
}