1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Hide progressbar on error.

This commit is contained in:
Thomas Tanghus 2012-07-20 22:25:09 +02:00
parent 01a5494d45
commit 1313be5352

View File

@ -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'));
}
});