From 984bbb64a29995b08652d12a48eccfce1d477da9 Mon Sep 17 00:00:00 2001 From: Web Access Date: Wed, 4 Mar 2015 12:21:41 +0530 Subject: [PATCH] Updated code to fix jScript error --- templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl | 2 +- templates/CRM/Tag/Form/Tag.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl index 5368a8816a..5b5077c8d5 100644 --- a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl +++ b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl @@ -57,7 +57,7 @@ highlightSelected(); }); - var childTag = {/literal}{$loadjsTree}{literal}; + var childTag = "{/literal}{$loadjsTree}{literal}"; if (childTag) { //load js tree. $("#tagtree").jstree({ diff --git a/templates/CRM/Tag/Form/Tag.tpl b/templates/CRM/Tag/Form/Tag.tpl index c616426250..f850cddc11 100644 --- a/templates/CRM/Tag/Form/Tag.tpl +++ b/templates/CRM/Tag/Form/Tag.tpl @@ -75,7 +75,7 @@ highlightSelected(); CRM.updateContactSummaryTags(); }); - var childTag = {/literal}{$loadjsTree}{literal}; + var childTag = "{/literal}{$loadjsTree}{literal}"; if (childTag) { //load js tree. $("#tagtree").jstree({ -- 2.25.1