Author: liem_nguyen
Date: 2009-12-22 03:58:58 -0500 (Tue, 22 Dec 2009)
New Revision: 1123
Modified:
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboard.gtmpl
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardContainer.gtmpl
Log:
GTNPORTAL-393 Show undefine when edit gadget in Dashboard page in special case
Modified:
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboard.gtmpl
===================================================================
---
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboard.gtmpl 2009-12-22
08:22:25 UTC (rev 1122)
+++
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboard.gtmpl 2009-12-22
08:58:58 UTC (rev 1123)
@@ -1,4 +1,15 @@
-<% def maxiGadget = uicomponent.getMaximizedGadget(); %>
+<%
+ import org.exoplatform.web.application.JavascriptManager;
+
+ def rcontext = _ctx.getRequestContext() ;
+ JavascriptManager jsmanager = rcontext.getJavascriptManager();
+ jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.SaveTitle='" +
_ctx.appRes("UIDashboardContainer.label.SaveTitle") + "';");
+ jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.CancelTitle='" +
_ctx.appRes("UIDashboardContainer.label.CancelTitle") + "';");
+ jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.Cache='" +
_ctx.appRes("UIDashboardContainer.label.Cache") + "';");
+ jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.Debug='" +
_ctx.appRes("UIDashboardContainer.label.Debug") + "';");
+
+ def maxiGadget = uicomponent.getMaximizedGadget();
+%>
<div id="$uicomponent.id" class="UIDashboard">
<div class="DashboardContainer <%=maxiGadget == null ? "" :
"Maximized"%>">
<%
Modified:
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardContainer.gtmpl
===================================================================
---
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardContainer.gtmpl 2009-12-22
08:22:25 UTC (rev 1122)
+++
portal/trunk/component/dashboard/src/main/resources/groovy/dashboard/webui/component/UIDashboardContainer.gtmpl 2009-12-22
08:58:58 UTC (rev 1123)
@@ -5,11 +5,7 @@
def uiDashboard = uicomponent.getParent();
def rcontext = _ctx.getRequestContext() ;
- JavascriptManager jsmanager = rcontext.getJavascriptManager();
- jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.SaveTitle='" +
_ctx.appRes("UIDashboardContainer.label.SaveTitle") + "';");
- jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.CancelTitle='" +
_ctx.appRes("UIDashboardContainer.label.CancelTitle") + "';");
- jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.Cache='" +
_ctx.appRes("UIDashboardContainer.label.Cache") + "';");
- jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.Debug='" +
_ctx.appRes("UIDashboardContainer.label.Debug") + "';");
+ JavascriptManager jsmanager = rcontext.getJavascriptManager();
String windowId = uicomponent.getWindowId() ;
DashboardParent parent = (DashboardParent)uicomponent.getParent().getParent();
jsmanager.addCustomizedOnLoadScript("eXo.webui.UIDashboard.onLoad('" +
windowId + "'," + parent.canEdit() + ");") ;
Show replies by date