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;
},
complete: function () {
setProgressCaption("Upload complete.");
setProgressPercentage(1);
},
success: function (data) {
setProgressCaption("Upload completed successfully.");
onUploaded(data);
ourClose();
},
error: function () {
setProgressCaption("Upload failed.");
setProgressCaption("Upload failed!");
}
});