aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-12 23:08:48 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-12 23:10:49 +0200
commit78189e2247ca28c0edda5688005d4b3f1a3d439f (patch)
treeb6a6da35d32f741cc8effd3f398502d6bb6817eb /apps
parent9165b5c28e051602a4c397ffa22dfe500bf24a0c (diff)
downloadnextcloud-server-78189e2247ca28c0edda5688005d4b3f1a3d439f.tar.gz
nextcloud-server-78189e2247ca28c0edda5688005d4b3f1a3d439f.zip
Contacts: update category list when the categories change
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/js/contacts.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js
index 6f34a42a73f..5f2bd6e9df9 100644
--- a/apps/contacts/js/contacts.js
+++ b/apps/contacts/js/contacts.js
@@ -504,8 +504,9 @@ Contacts={
return false;
},
categoriesChanged:function(newcategories) { // Categories added/deleted.
- console.log('categoriesChanged for ' + Contacts.UI.Card.id + ' : ' + newcategories);
- categories = newcategories;
+ categories = $.map(newcategories, function(v) {return v;});
+ console.log('categoriesChanged for ' + Contacts.UI.Card.id + ' : ' + categories);
+ $('#categories').multiple_autocomplete('option', 'source', categories);
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'){