mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 08:53:07 +02:00
fix spinner and restart behaviour for manual content upload
This commit is contained in:
parent
2faa67c68d
commit
5dd74674ef
1 changed files with 1 additions and 2 deletions
|
@ -54,7 +54,7 @@ $(document).ready(function(){
|
||||||
var fileFormData = new FormData();
|
var fileFormData = new FormData();
|
||||||
fileFormData.append('restore-file', files[0]);
|
fileFormData.append('restore-file', files[0]);
|
||||||
|
|
||||||
showSpinnerAlert("Restoring Content");
|
showSpinnerAlert("Uploading content to restore");
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/content/upload',
|
url: '/content/upload',
|
||||||
|
@ -65,7 +65,6 @@ $(document).ready(function(){
|
||||||
data: fileFormData
|
data: fileFormData
|
||||||
}).done(function(data, textStatus, jqXHR) {
|
}).done(function(data, textStatus, jqXHR) {
|
||||||
swal.close();
|
swal.close();
|
||||||
showRestartModal();
|
|
||||||
}).fail(function(jqXHR, textStatus, errorThrown) {
|
}).fail(function(jqXHR, textStatus, errorThrown) {
|
||||||
showErrorMessage(
|
showErrorMessage(
|
||||||
"Error",
|
"Error",
|
||||||
|
|
Loading…
Reference in a new issue