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:
parent
8895b6ff15
commit
c155faff21
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user