mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Hide progressbar on error.
This commit is contained in:
parent
3103a4cb3f
commit
42fbc111a2
1 changed files with 2 additions and 0 deletions
|
|
@ -1844,6 +1844,7 @@ $(document).ready(function(){
|
|||
if(retries > 3) {
|
||||
numfiles = uploadedfiles = retries = aid = 0;
|
||||
uploadingFiles = {};
|
||||
$('#uploadprogressbar').fadeOut();
|
||||
OC.dialogs.alert(t('contacts', 'Something went wrong with the upload, please retry.'), t('contacts', 'Error'));
|
||||
return;
|
||||
}
|
||||
|
|
@ -1917,6 +1918,7 @@ $(document).ready(function(){
|
|||
});
|
||||
}
|
||||
} else {
|
||||
$('#uploadprogressbar').fadeOut();
|
||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue