tweak progress captions in error cases

This commit is contained in:
mappu 2017-10-08 19:14:11 +13:00
parent f543347b1c
commit 9436dcd43e

View File

@ -177,15 +177,15 @@ var contented = (function ($, currentScriptPath) {
return xhr; return xhr;
}, },
complete: function () { complete: function () {
setProgressCaption("Upload complete.");
setProgressPercentage(1); setProgressPercentage(1);
}, },
success: function (data) { success: function (data) {
setProgressCaption("Upload completed successfully.");
onUploaded(data); onUploaded(data);
ourClose(); ourClose();
}, },
error: function () { error: function () {
setProgressCaption("Upload failed."); setProgressCaption("Upload failed!");
} }
}); });