From 9e294f9ae119ca3c31cd5c8b82d445aa1c307ffa Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 12 Mar 2012 21:55:54 +0100 Subject: [PATCH] Remember categories when they have changed. --- js/contacts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/contacts.js b/js/contacts.js index b9e3b997..21246e11 100644 --- a/js/contacts.js +++ b/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'){