Set the loading class on the property being changed, not on its container. Now on all the places relevant ;-)
This commit is contained in:
parent
97106f198f
commit
f5c620006e
1 changed files with 3 additions and 3 deletions
|
@ -701,7 +701,7 @@ Contacts={
|
|||
}
|
||||
else{
|
||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||
Contacts.UI.loading(container, false);
|
||||
Contacts.UI.loading(obj, false);
|
||||
$(obj).removeAttr('disabled');
|
||||
return false;
|
||||
}
|
||||
|
@ -714,13 +714,13 @@ Contacts={
|
|||
container.data('checksum', jsondata.data.checksum);
|
||||
// TODO: savePropertyInternal doesn't know about new fields
|
||||
//Contacts.UI.Card.savePropertyInternal(name, fields, checksum, jsondata.data.checksum);
|
||||
Contacts.UI.loading(container, false);
|
||||
Contacts.UI.loading(obj, false);
|
||||
$(obj).removeAttr('disabled');
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||
Contacts.UI.loading(container, false);
|
||||
Contacts.UI.loading(obj, false);
|
||||
$(obj).removeAttr('disabled');
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue