Author: phuong_vu
Date: 2011-02-25 04:49:42 -0500 (Fri, 25 Feb 2011)
New Revision: 5944
Modified:
portal/branches/branch-GTNPORTAL-1822/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl
Log:
GTNPORTAL-1778 Should change message when delete the gadget which removed from Application
Registry
Modified:
portal/branches/branch-GTNPORTAL-1822/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl
===================================================================
---
portal/branches/branch-GTNPORTAL-1822/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl 2011-02-25
09:28:53 UTC (rev 5943)
+++
portal/branches/branch-GTNPORTAL-1822/web/portal/src/main/webapp/groovy/portal/webui/application/UIGadget.gtmpl 2011-02-25
09:49:42 UTC (rev 5944)
@@ -16,14 +16,14 @@
def isDebug = uicomponent.isDebug();
def view = uicomponent.getView();
def userPref = null;
-
+
+
rcontext.getJavascriptManager().addCustomizedOnLoadScript("eXo.gadget.UIGadget.confirmDeleteGadget
= '" + _ctx.appRes("UIGadgetContainerManagement.confirm.DeleteGadget")
+ "';");
def isLossData = uicomponent.isLossData();
if(!isLossData) {
url = uicomponent.getUrl();
metadata = uicomponent.getMetadata();
userPref = uicomponent.getUserPref();
jsmanager.importJavascript("eXo.gadget.UIGadget");
-
rcontext.getJavascriptManager().addCustomizedOnLoadScript("eXo.gadget.UIGadget.confirmDeleteGadget
= '" + _ctx.appRes("UIGadgetContainerManagement.confirm.DeleteGadget")
+ "';");
jsmanager.addCustomizedOnLoadScript("eXo.gadget.UIGadget.createGadget('$url','content-$id',
$metadata, $userPref, '$view', '$hostName', " + (isDev ? 1 : 0)
+ ", " + (isDebug ? 1 : 0) +
", " + (noCache ? 1 : 0) + ");");
}
Show replies by date