Add try again message to database import

This commit is contained in:
JonnyWong16 2020-05-03 18:39:00 -07:00
commit 8a8d47f8e7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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>&nbsp; Error (" + xhr.status + ")"; var msg = "<i class='fa fa-exclamation-triangle'></i>&nbsp; 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);
}, },