Author: jleroux
Date: Sat Sep 5 20:37:41 2009
New Revision: 811708
URL:
http://svn.apache.org/viewvc?rev=811708&view=revLog:
Fix 2 bugs which where preventing to show the detailed image. Though I still wonder why Base64.base64Decode was used there (I left it in comment)...
Modified:
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/detailImage.ftl
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/detailImage.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/detailImage.ftl?rev=811708&r1=811707&r2=811708&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/detailImage.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/detailImage.ftl Sat Sep 5 20:37:41 2009
@@ -19,8 +19,8 @@
<html>
<body>
<#if requestParameters.detail?has_content>
- <#assign detailImage = Static["org.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)>
- <img src="${detailImage}">
+ <#--assign detailImage = Static["org.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)-->
+ <img src="${requestParameters.detail}">
<#else>
<script language="JavaScript" type="text/javascript">
<!-- //
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl?rev=811708&r1=811707&r2=811708&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl Sat Sep 5 20:37:41 2009
@@ -110,6 +110,7 @@
alert(hack.innerHTML);
return;
}
+ detailImageUrl = detailImageUrl.replace(/\&\#47;/g, "/");
popUp("<@ofbizUrl>detailImage?detail=" + detailImageUrl + "</@ofbizUrl>", 'detailImage', '400', '550');
}