commit 3d555e030a3b875bbb780a21cfdf80416147202c parent 01d3d0057c84cb6415773bc45437c51e2e436a40 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 2 Sep 2010 02:03:10 +0000 Commons: - Don't break reloading on "Invalid response retrieving file upload parameters" - Don't break loading if a <file> doesn't have a <format> Diffstat:
| M | chrome/content/zotero/xpcom/commons.js | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/commons.js b/chrome/content/zotero/xpcom/commons.js @@ -499,10 +499,16 @@ Zotero.Commons.Bucket.prototype.getItems = function (callback) { } catch (e) { alert("Invalid response retrieving file upload parameters"); + this._itemsLoading = false; return; } - var zipsXML = xml.file.(@source == 'original').(format == 'Zotero ZIP Item'); + try { + var zipsXML = xml.file.(@source == 'original').(typeof format != 'undefined' && format == 'Zotero ZIP Item'); + } + catch (e) { + return; + } Zotero.debug(zipsXML);