CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status
authorColeman Watts <coleman@civicrm.org>
Mon, 20 Jan 2014 00:43:37 +0000 (16:43 -0800)
committerColeman Watts <coleman@civicrm.org>
Mon, 20 Jan 2014 04:29:06 +0000 (20:29 -0800)
templates/CRM/Tag/Form/Tag.tpl

index 763c83a815d4f99c419a2c325e1bc983cbea792c..93218b10f72334ca3a22d3da9fa3a7019201d11c 100644 (file)
@@ -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();
       });