ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ash...@apache.org
Subject svn commit: r741537 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl
Date Fri, 06 Feb 2009 11:20:48 GMT
Author: ashish
Date: Fri Feb  6 11:20:46 2009
New Revision: 741537

URL: http://svn.apache.org/viewvc?rev=741537&view=rev
Log:
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;



Mime
View raw message