1
0
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:
Thomas Tanghus 2013-09-14 15:52:13 +02:00
parent 32968b6235
commit f919966321

View File

@ -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) {