Commons:
- Don't break reloading on "Invalid response retrieving file upload parameters" - Don't break loading if a <file> doesn't have a <format>
This commit is contained in:
parent
01d3d0057c
commit
3d555e030a
1 changed files with 7 additions and 1 deletions
|
@ -499,10 +499,16 @@ Zotero.Commons.Bucket.prototype.getItems = function (callback) {
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
alert("Invalid response retrieving file upload parameters");
|
alert("Invalid response retrieving file upload parameters");
|
||||||
|
this._itemsLoading = false;
|
||||||
return;
|
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);
|
Zotero.debug(zipsXML);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue