summaryrefslogtreecommitdiffstats
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:10:12 +0200
commitd730d3edd40d6e8ef49022321e40392f6e0be45b (patch)
tree77c36f59b26d55901b4212318cfa297d07f74a18
parent25b95a9ec7da492e43c26ba5d6f38c773cecd39f (diff)
downloadnextcloud-server-d730d3edd40d6e8ef49022321e40392f6e0be45b.tar.gz
nextcloud-server-d730d3edd40d6e8ef49022321e40392f6e0be45b.zip
Set the loading class on the property being changed, not on its container.
-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 c83390b5bf4..f5ce919b1d2 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -628,7 +628,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();
@@ -651,7 +651,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;
@@ -663,7 +663,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;
}