diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-05-14 17:48:58 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-05-14 17:49:33 +0200 |
commit | 9b3d8660eb124995bb7414d2b09cb564eae95734 (patch) | |
tree | 32e2273de980158e4391560d2c989c70dafe175b /apps/contacts | |
parent | de850dfa525c215aa8d4473b8ccf9a8d59fcf3b8 (diff) | |
download | nextcloud-server-9b3d8660eb124995bb7414d2b09cb564eae95734.tar.gz nextcloud-server-9b3d8660eb124995bb7414d2b09cb564eae95734.zip |
Contacts: Had forgotten to call local function.
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/js/contacts.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index a74258199c5..a8b75fe50c8 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -238,7 +238,7 @@ Contacts={ } else { newid = id; } - + console.log('update newid: ' + newid); var localLoadContact = function(id) { if($('#contacts li').length > 0) { $('#leftcontent li[data-id="'+newid+'"]').addClass('active'); @@ -258,7 +258,7 @@ Contacts={ if(jsondata.status == 'success'){ $('#rightcontent').html(jsondata.data.page).ready(function() { Contacts.UI.loadHandlers(); - localLoadContact(id); + localLoadContact(newid); }); } else { OC.dialogs.alert(jsondata.data.message, t('contacts', 'Error')); @@ -277,6 +277,9 @@ Contacts={ } }); } + else { + localLoadContact(); + } }, doExport:function() { document.location.href = OC.linkTo('contacts', 'export.php') + '?contactid=' + this.id; @@ -364,6 +367,7 @@ Contacts={ if(newlistitem != undefined) { newid = newlistitem.data('id'); } + console.log('newid: ' + newid); $('#rightcontent').data('id',newid); this.id = this.fn = this.fullname = this.shortname = this.famname = this.givname = this.addname = this.honpre = this.honsuf = ''; this.data = undefined; |