projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a323a20
)
CRM-14093 - CRM-13817 - Tag js - convert to use CRM.api3 and CRM.status
author
Coleman Watts
<coleman@civicrm.org>
Mon, 20 Jan 2014 00:43:37 +0000
(16:43 -0800)
committer
Coleman Watts
<coleman@civicrm.org>
Mon, 20 Jan 2014 04:29:06 +0000
(20:29 -0800)
templates/CRM/Tag/Form/Tag.tpl
patch
|
blob
|
blame
|
history
diff --git
a/templates/CRM/Tag/Form/Tag.tpl
b/templates/CRM/Tag/Form/Tag.tpl
index 763c83a815d4f99c419a2c325e1bc983cbea792c..93218b10f72334ca3a22d3da9fa3a7019201d11c 100644
(file)
--- 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();
});