summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-08 16:10:12 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-08 16:11:45 +0200
commit97106f198fb9d49a2f8369a0dc9fa9d7c5172140 (patch)
treedfd7f3b58c296fb707d96cc1abeda8eb2a59016d /apps
parente6a60198e429adf4c7fae261109ae09a9045f733 (diff)
downloadnextcloud-server-97106f198fb9d49a2f8369a0dc9fa9d7c5172140.tar.gz
nextcloud-server-97106f198fb9d49a2f8369a0dc9fa9d7c5172140.zip
Set the loading class on the property being changed, not on its container.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/js/contacts.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index 39ef14e5062..324833833b5 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -660,7 +660,7 @@ Contacts={
return false;
}
container = $(obj).parents('.propertycontainer').first(); // get the parent holding the metadata.
- Contacts.UI.loading(container, true);
+ Contacts.UI.loading(obj, true);
var checksum = container.data('checksum');
var name = container.data('element');
var fields = container.find('input.contacts_property,select.contacts_property').serializeArray();
@@ -683,7 +683,7 @@ Contacts={
var q = container.find('input.contacts_property,select.contacts_property,textarea.contacts_property').serialize();
if(q == '' || q == undefined) {
OC.dialogs.alert(t('contacts', 'Couldn\'t serialize elements.'), t('contacts', 'Error'));
- Contacts.UI.loading(container, false);
+ Contacts.UI.loading(obj, false);
return false;
}
q = q + '&id=' + this.id + '&name=' + name;
@@ -695,7 +695,7 @@ Contacts={
if(jsondata.status == 'success'){
container.data('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');
return true;
}