Skip to content
Snippets Groups Projects
Commit 48b2a002 authored by colemanw's avatar colemanw
Browse files

CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status

parent a323a20f
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,8 @@
$("#tagtree input").change(function(){
var tagid = this.id.replace("check_", "");
var op = (this.checked) ? 'create' : 'delete';
CRM.api('entity_tag', op, {entity_table: entityTable, entity_id: entityID, tag_id: tagid});
var api = CRM.api3('entity_tag', op, {entity_table: entityTable, entity_id: entityID, tag_id: tagid});
CRM.status({/literal}'{ts escape="js"}Saving...{/ts}', '{ts escape="js"}Saved{/ts}'{literal}, api);
CRM.updateContactSummaryTags();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment