tweak progress captions in error cases
This commit is contained in:
parent
f543347b1c
commit
9436dcd43e
@ -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!");
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user