- Second half of ZFS quota message wasn't being shown in dialog

- Display filename of file that would put user over quota
This commit is contained in:
Dan Stillman 2010-08-31 17:50:03 +00:00
parent a081315876
commit a815fefa28

View file

@ -492,12 +492,12 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
if (item.libraryID) {
var group = Zotero.Groups.getByLibraryID(item.libraryID);
text = Zotero.getString('sync.storage.error.zfs.groupQuotaReached1', group.name) + "\n\n"
Zotero.getString('sync.storage.error.zfs.groupQuotaReached2');
+ Zotero.getString('sync.storage.error.zfs.groupQuotaReached2');
}
// Personal file
else {
text = Zotero.getString('sync.storage.error.zfs.personalQuotaReached1') + "\n\n"
Zotero.getString('sync.storage.error.zfs.personalQuotaReached2');
+ Zotero.getString('sync.storage.error.zfs.personalQuotaReached2');
buttonText = Zotero.getString('sync.storage.openAccountSettings');
buttonCallback = function () {
var url = "https://www.zotero.org/settings/storage";
@ -510,6 +510,9 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
}
}
// TODO: localize
text += "\n\n" + filename + " (" + Math.round(file.fileSize / 1024) + "KB)";
Zotero.debug(req.responseText);
var e = new Zotero.Error(