diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-08 16:15:52 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-08 16:15:52 +0200 |
commit | f5c620006ebdaf65ced253f88bb85fc1ca671e3b (patch) | |
tree | 4dcc04d9d6860b3b142f201ae7b0569bb3ba9885 | |
parent | 97106f198fb9d49a2f8369a0dc9fa9d7c5172140 (diff) | |
download | nextcloud-server-f5c620006ebdaf65ced253f88bb85fc1ca671e3b.tar.gz nextcloud-server-f5c620006ebdaf65ced253f88bb85fc1ca671e3b.zip |
Set the loading class on the property being changed, not on its container. Now on all the places relevant ;-)
-rw-r--r-- | apps/contacts/js/contacts.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 324833833b5..0ed35a6a90b 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -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; } |