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

Corrected retry count for uploaded imports.

This commit is contained in:
Thomas Tanghus 2012-07-20 21:53:34 +02:00
parent 5fe99f3f6e
commit 01a5494d45

View File

@ -1841,7 +1841,7 @@ $(document).ready(function(){
if(numfiles != uploadedfiles) { if(numfiles != uploadedfiles) {
Contacts.UI.notify({message:t('contacts', 'Not all files uploaded. Retrying...')}); Contacts.UI.notify({message:t('contacts', 'Not all files uploaded. Retrying...')});
retries += 1; retries += 1;
if(retries > 0) { if(retries > 3) {
numfiles = uploadedfiles = retries = aid = 0; numfiles = uploadedfiles = retries = aid = 0;
uploadingFiles = {}; uploadingFiles = {};
OC.dialogs.alert(t('contacts', 'Something went wrong with the upload, please retry.'), t('contacts', 'Error')); OC.dialogs.alert(t('contacts', 'Something went wrong with the upload, please retry.'), t('contacts', 'Error'));