Don't show "Loading item data" when data is cached

This commit is contained in:
Dan Stillman 2015-05-24 19:59:33 -04:00
parent e35575e6fd
commit dd52206b37

View file

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