Author: ashish
Date: Fri Feb 6 11:20:46 2009
New Revision: 741537
URL:
http://svn.apache.org/viewvc?rev=741537&view=revLog:
Applied patch from JIRA issue OFBIZ-2162 (Reduce the Redundancy of Java script in inlineProductDetail.ftl in order component).
Thanks Arpit Singh Pandya for your contribution.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl?rev=741537&r1=741536&r2=741537&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl Fri Feb 6 11:20:46 2009
@@ -18,9 +18,10 @@
-->
${virtualJavaScript?if_exists}
-<#assign addJavaScript = requestAttributes.addJavaScript/>
-<#if (addJavaScript == 0)>
-<script language="JavaScript" type="text/javascript">
+<#assign addedJavaScript = requestAttributes.addedJavaScript?default("N")/>
+<#if ("N" == addedJavaScript)>
+ ${setRequestAttribute("addedJavaScript", "Y")}
+ <script language="JavaScript" type="text/javascript">
function popupDetailInline(inlineCounter) {
var imageField = 'detailImage' + inlineCounter;