]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set the loading class on the property being changed, not on its container. Now on...
authorThomas Tanghus <thomas@tanghus.net>
Sun, 8 Jul 2012 14:15:52 +0000 (16:15 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Sun, 8 Jul 2012 14:17:10 +0000 (16:17 +0200)
apps/contacts/js/contacts.js

index f5ce919b1d21900e36d9c8e6d827ae98f2836686..7f260ea54d98d84aff74d6e9f2ccfb04ec05cee9 100644 (file)
@@ -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;
                                                }