From a815fefa281ba00ffcc93ccf34fef99a1bb2445e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 31 Aug 2010 17:50:03 +0000 Subject: [PATCH] - Second half of ZFS quota message wasn't being shown in dialog - Display filename of file that would put user over quota --- chrome/content/zotero/xpcom/storage/zfs.js | 7 +++++-- 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 index a35e33abf..bc656e699 100644 --- 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(