svn commit: r1840094 - /ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1840094 - /ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl

Deepak Dixit-5
Author: deepak
Date: Wed Sep  5 07:19:13 2018
New Revision: 1840094

URL: http://svn.apache.org/viewvc?rev=1840094&view=rev
Log:
Improved: Use of layered-modal with parameter does not work
(OFBIZ-10511)
Thanks Arsalane Arrach for your contribution. Use " to escape the double quotation marks

Modified:
    ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl

Modified: ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl?rev=1840094&r1=1840093&r2=1840094&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/themes/common/template/macro/HtmlFormMacroLibrary.ftl Wed Sep  5 07:19:13 2018
@@ -797,17 +797,17 @@ Parameter: delegatorName, String, option
 </#macro>
 <#macro makeHyperlinkString hiddenFormName imgSrc title  alternate linkUrl description linkStyle="" event="" action="" targetParameters="" targetWindow="" confirmation="" uniqueItemName="" height="" width="" id="">
     <#if uniqueItemName?has_content>
-        <#local params = "{ \"presentation\": \"layer\"">
+        <#local params = "{&quot;presentation&quot;: &quot;layer&quot;">
         <#if targetParameters?has_content>
           <#assign parameterMap = targetParameters?eval>
           <#assign parameterKeys = parameterMap?keys>
           <#list parameterKeys as key>
-            <#local params += ",\"${key}\": \"${parameterMap[key]}\"">
+            <#local params += ",&quot;${key}&quot;: &quot;${parameterMap[key]}&quot;">
           </#list>
         </#if>
         <#local params += " }">
         <a href="javascript:void(0);" id="${uniqueItemName}_link"
-           data-dialog-params='${params}'
+           data-dialog-params="${params}"
            data-dialog-width="${width}"
            data-dialog-height="${height}"
            data-dialog-url="${linkUrl}"