mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
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
e10a0dd651
commit
3273d19321
@ -669,7 +669,7 @@ Contacts={
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||||
Contacts.UI.loading(container, false);
|
Contacts.UI.loading(obj, false);
|
||||||
$(obj).removeAttr('disabled');
|
$(obj).removeAttr('disabled');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -682,13 +682,13 @@ Contacts={
|
|||||||
container.data('checksum', jsondata.data.checksum);
|
container.data('checksum', jsondata.data.checksum);
|
||||||
// TODO: savePropertyInternal doesn't know about new fields
|
// TODO: savePropertyInternal doesn't know about new fields
|
||||||
//Contacts.UI.Card.savePropertyInternal(name, fields, checksum, jsondata.data.checksum);
|
//Contacts.UI.Card.savePropertyInternal(name, fields, checksum, jsondata.data.checksum);
|
||||||
Contacts.UI.loading(container, false);
|
Contacts.UI.loading(obj, false);
|
||||||
$(obj).removeAttr('disabled');
|
$(obj).removeAttr('disabled');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error'));
|
||||||
Contacts.UI.loading(container, false);
|
Contacts.UI.loading(obj, false);
|
||||||
$(obj).removeAttr('disabled');
|
$(obj).removeAttr('disabled');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user