diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-03-12 21:55:54 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-03-12 21:55:54 +0100 |
commit | 60fe9dda5de9acc7de1120fe4edb2ac300695bb2 (patch) | |
tree | eb1688e9aaaaa7142b117ab7cbba0f23936b2d30 | |
parent | 3efa5f17f29864543d956ca7b4232a23910d5b79 (diff) | |
download | nextcloud-server-60fe9dda5de9acc7de1120fe4edb2ac300695bb2.tar.gz nextcloud-server-60fe9dda5de9acc7de1120fe4edb2ac300695bb2.zip |
Remember categories when they have changed.
-rw-r--r-- | apps/contacts/js/contacts.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index b9e3b997280..21246e1108c 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -467,8 +467,9 @@ Contacts={ } return false; }, - categoriesChanged:function(categories) { // Categories added/deleted. - console.log('categoriesChanged for ' + Contacts.UI.Card.id + ' : ' + categories); + categoriesChanged:function(newcategories) { // Categories added/deleted. + console.log('categoriesChanged for ' + Contacts.UI.Card.id + ' : ' + newcategories); + categories = newcategories; var categorylist = $('#categories_value').find('input'); $.getJSON(OC.filePath('contacts', 'ajax', 'categories/categoriesfor.php'),{'id':Contacts.UI.Card.id},function(jsondata){ if(jsondata.status == 'success'){ |