Author: ndkhoiits
Date: 2011-04-28 06:56:31 -0400 (Thu, 28 Apr 2011)
New Revision: 6400
Modified:
portal/branches/branch-GTNPORTAL-1872/portlet/web/src/main/webapp/groovy/portal/webui/component/UILogoPortlet.gtmpl
Log:
GTNPORTAL-1869 Chrome - processAction methods are called twice when url is empty in logo
portlet
Modified:
portal/branches/branch-GTNPORTAL-1872/portlet/web/src/main/webapp/groovy/portal/webui/component/UILogoPortlet.gtmpl
===================================================================
---
portal/branches/branch-GTNPORTAL-1872/portlet/web/src/main/webapp/groovy/portal/webui/component/UILogoPortlet.gtmpl 2011-04-28
10:25:58 UTC (rev 6399)
+++
portal/branches/branch-GTNPORTAL-1872/portlet/web/src/main/webapp/groovy/portal/webui/component/UILogoPortlet.gtmpl 2011-04-28
10:56:31 UTC (rev 6400)
@@ -15,7 +15,15 @@
<div class="UILogoPortlet ClearFix" id="$uicomponent.id" >
<%if( _ctx.getRequestContext().getApplicationMode() == PortletMode.VIEW) {%>
<!-- LOGO IMAGE -->
- <a href="#" class="Img"><image
src="<%=uicomponent.getURL()%>" alt="" /></a>
+ <a href="#" class="Img">
+ <%
+ String imgURL = uicomponent.getURL();
+ if (imgURL != "")
+ {
+ print """<img src="$imgURL"
/>""";
+ }
+ %>
+ </a>
<div class="BannerTitle">$navTitle</div>
<!-- ACTIONs -->
<% if(prContext.getRemoteUser() == null) { %>
Show replies by date