From 48b2a0020b5ae7c2e6d3e364cb57ecd833a4190c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 19 Jan 2014 16:43:37 -0800 Subject: [PATCH] CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status --- templates/CRM/Tag/Form/Tag.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Tag/Form/Tag.tpl b/templates/CRM/Tag/Form/Tag.tpl index 763c83a815..93218b10f7 100644 --- a/templates/CRM/Tag/Form/Tag.tpl +++ b/templates/CRM/Tag/Form/Tag.tpl @@ -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(); }); -- 2.25.1