1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Aha, now jqueryui.progressbar doesn't accept a string as value.

I wouldn't call that progress...
This commit is contained in:
Thomas Tanghus 2013-08-03 15:58:04 +02:00
parent 8895b6ff15
commit c155faff21

View File

@ -267,7 +267,7 @@ OC.Contacts = OC.Contacts || {};
};
if(response.status === 'success') {
this.importCount = response.data.count;
this.$importProgress.progressbar('value', '0');
this.$importProgress.progressbar('value', 0);
this.$importProgress.progressbar('option', 'max', this.importCount);
var data = response.data;
var getStatus = function(backend, addressbookid, progresskey, interval, done) {
@ -287,7 +287,7 @@ OC.Contacts = OC.Contacts || {};
))
.then(function(response) {
if(!response.error) {
self.$importProgress.progressbar('value', response.data.progress);
self.$importProgress.progressbar('value', Number(response.data.progress));
self.$importStatusText.text(t('contacts', 'Imported {count} of {total} contacts',
{count:response.data.progress, total: self.importCount}));
} else {