1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00

Remember categories when they have changed.

This commit is contained in:
Thomas Tanghus 2012-03-12 21:55:54 +01:00
parent d1dc4f23c6
commit 9e294f9ae1

View File

@ -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'){