Author: deepak
Date: Wed Sep 5 07:19:13 2018
New Revision: 1840094
URL:
http://svn.apache.org/viewvc?rev=1840094&view=revLog:
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 = "{"presentation": "layer"">
<#if targetParameters?has_content>
<#assign parameterMap = targetParameters?eval>
<#assign parameterKeys = parameterMap?keys>
<#list parameterKeys as key>
- <#local params += ",\"${key}\": \"${parameterMap[key]}\"">
+ <#local params += ","${key}": "${parameterMap[key]}"">
</#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}"