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:17:10 +0200 |
commit | 747b7fbbfe54fd8475e317ce52ee7fc3b914f377 (patch) | |
tree | 35fb6436fdccef9603f7cd8fc89ceec1115f0edd | |
parent | d730d3edd40d6e8ef49022321e40392f6e0be45b (diff) | |
download | nextcloud-server-747b7fbbfe54fd8475e317ce52ee7fc3b914f377.tar.gz nextcloud-server-747b7fbbfe54fd8475e317ce52ee7fc3b914f377.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 f5ce919b1d2..7f260ea54d9 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -669,7 +669,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; } @@ -682,13 +682,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; } |