commit a815fefa281ba00ffcc93ccf34fef99a1bb2445e
parent a0813158766d565421c356bf990a849ca8ff3a02
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 31 Aug 2010 17:50:03 +0000
- Second half of ZFS quota message wasn't being shown in dialog
- Display filename of file that would put user over quota
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js
@@ -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(