Add try again message to database import
This commit is contained in:
@@ -187,9 +187,11 @@
|
|||||||
$("#import_database_path").val('');
|
$("#import_database_path").val('');
|
||||||
},
|
},
|
||||||
error: function (xhr) {
|
error: function (xhr) {
|
||||||
var msg = "<i class='fa fa-exclamation-triangle'></i> Error (" + xhr.status + ")";
|
var msg = "<i class='fa fa-exclamation-triangle'></i> Error (" + xhr.status + "): ";
|
||||||
if (xhr.status === 413) {
|
if (xhr.status === 413) {
|
||||||
msg += ": file is too large to upload"
|
msg += "file is too large to upload"
|
||||||
|
} else {
|
||||||
|
msg += 'try again'
|
||||||
}
|
}
|
||||||
$("#status-message").html(msg);
|
$("#status-message").html(msg);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user