svn commit: r741537 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl

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

svn commit: r741537 - /ofbiz/trunk/applications/order/webapp/ordermgr/entry/catalog/inlineProductDetail.ftl

ashish-18
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;