From: Coleman Watts Date: Mon, 20 Jan 2014 00:43:37 +0000 (-0800) Subject: CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=48b2a0020b5ae7c2e6d3e364cb57ecd833a4190c;p=civicrm-core.git CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status --- 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(); });