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;
|
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!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user