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.
This commit is contained in:
parent
737f54a70c
commit
82b789e083
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue