Updated JS namespace.

This commit is contained in:
Thomas Tanghus 2012-08-02 01:14:50 +02:00
parent 91e828c6ce
commit 937058cdec
2 changed files with 1556 additions and 1566 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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'));
}