From 3273d1932108d3242d8554314115a9024489e91a Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sun, 8 Jul 2012 16:15:52 +0200 Subject: [PATCH] Set the loading class on the property being changed, not on its container. Now on all the places relevant ;-) --- js/contacts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/contacts.js b/js/contacts.js index f5ce919b..7f260ea5 100644 --- a/js/contacts.js +++ b/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; }