diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-08-02 01:14:50 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-08-02 04:18:44 +0200 |
commit | 937058cdec1b853cd1f60feeb925e3907c676679 (patch) | |
tree | 98e5ab336f44d8439a1a35d7ec0fe02c8abd49f0 /apps/contacts/js/settings.js | |
parent | 91e828c6ce248a0f7d7ddde9d2c33bfea7f7428f (diff) | |
download | nextcloud-server-937058cdec1b853cd1f60feeb925e3907c676679.tar.gz nextcloud-server-937058cdec1b853cd1f60feeb925e3907c676679.zip |
Updated JS namespace.
Diffstat (limited to 'apps/contacts/js/settings.js')
-rw-r--r-- | apps/contacts/js/settings.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/contacts/js/settings.js b/apps/contacts/js/settings.js index b79e52cb87a..6f0a8b88353 100644 --- a/apps/contacts/js/settings.js +++ b/apps/contacts/js/settings.js @@ -18,11 +18,11 @@ OC.Contacts.Settings = OC.Contacts.Settings || { if(!active) { $('#contacts h3[data-id="'+id+'"],#contacts ul[data-id="'+id+'"]').remove(); } else { - Contacts.UI.Contacts.update(); + OC.Contacts.Contacts.update(); } } else { console.log('Error:', jsondata.data.message); - Contacts.UI.notify(t('contacts', 'Error') + ': ' + jsondata.data.message); + OC.Contacts.notify(t('contacts', 'Error') + ': ' + jsondata.data.message); tgt.checked = !active; } }); @@ -37,7 +37,7 @@ OC.Contacts.Settings = OC.Contacts.Settings || { if (jsondata.status == 'success'){ $('#contacts h3[data-id="'+id+'"],#contacts ul[data-id="'+id+'"]').remove(); $('.addressbooks-settings tr[data-id="'+id+'"]').remove() - Contacts.UI.Contacts.update(); + OC.Contacts.Contacts.update(); } else { OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error')); } @@ -100,7 +100,7 @@ OC.Contacts.Settings = OC.Contacts.Settings || { row.find('td.name').text(jsondata.addressbook.displayname); row.find('td.description').text(jsondata.addressbook.description); } - Contacts.UI.Contacts.update(); + OC.Contacts.Contacts.update(); } else { OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error')); } |