mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Check if progressbar is initialized before destroying it.
This commit is contained in:
parent
32968b6235
commit
f919966321
@ -341,7 +341,9 @@ OC.Contacts = OC.Contacts || {};
|
||||
$('.import-upload').show();
|
||||
$('.import-status').hide();
|
||||
self.importCount = null;
|
||||
self.$importProgress.progressbar('destroy');
|
||||
if(self.$importProgress.hasClass('ui-progressbar')) {
|
||||
self.$importProgress.progressbar('destroy');
|
||||
}
|
||||
}, 5000);
|
||||
};
|
||||
if(!response.error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user