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'); }