commit dd52206b37cdf098c2393580f3fd4e7f5b54807b
parent e35575e6fd36bc9f9306a10b7db36caf1d831856
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 24 May 2015 19:59:33 -0400
Don't show "Loading item data" when data is cached
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js
@@ -4284,12 +4284,12 @@ Zotero.Item.prototype.toResponseJSON = Zotero.Promise.coroutine(function* (optio
* Load in the field data from the database
*/
Zotero.Item.prototype.loadItemData = Zotero.Promise.coroutine(function* (reload) {
- Zotero.debug("Loading item data for item " + this.libraryKey);
-
if (this._loaded.itemData && !reload) {
return;
}
+ Zotero.debug("Loading item data for item " + this.libraryKey);
+
if (!this.id) {
throw ('ItemID not set for object before attempting to load data');
}