]
Trong Tran updated GTNPORTAL-2794:
----------------------------------
Labels: portal-s70 (was: )
";" is missing in the "UIGadgetViewMode.gtmpl"
----------------------------------------------
Key: GTNPORTAL-2794
URL:
https://issues.jboss.org/browse/GTNPORTAL-2794
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Racha Touzi
Labels: portal-s70
The Gadget is not displayed due to the missing of ";" after
".....('$id')" in
"/groovy/gadget/webui/componentUIGadgetViewMode.gtmpl" under the dashoboard
war.
{code}
if(UIPortlet.getCurrentUIPortlet().getHeight() == null &&
uicomponent.getParent().isFillUpFreeSpace()) {
requireJS.addScripts("gadget.UIGadget.resizeFullHeight('$id');");
}
{code}
This missing ";" cause problem When requiring all javascripts.
{code}
require(["SHARED/base","SHARED/portal","SHARED/navigation","SHARED/navigation","SHARED/navigation-spaces-search","SHARED/gadget","SHARED/social-core","PORTLET/platformNavigation/UISearchPlatformToolbarPortlet","SHARED/common"],function(base,portal,navigation,nav,spacesSearch,gadget)
{
eXo.env.server.portalBaseURL="/portal/g/:developers/ide";
eXo.env.server.portalURLTemplate="/portal/g/:developers/ide?portal:componentId={portal:componentId}&portal:action={portal:action}";
portal.UIPortal.initMouseHover('UIToolbarContainer');
navigation.UIPortalNavigation.onLoad("UIUserPlatformToolBarPortlet");
nav.UIPortalNavigation.onLoad('UICreatePlatformToolBarPortlet');nav.UIPortalNavigation.onLoad('UICreateList');navigation.UIPortalNavigation.onLoad("UISetupPlatformToolBarPortlet");nav.UIPortalNavigation.onLoad('UIAdminToolbarContainer');
spacesSearch.UISpaceNavigation.init('UISpaceNavigationPortlet','/portal/rest/space/user/searchSpace/','Rechercher
des espaces','Aucun espace
trouvé','javascript%3AajaxGet%28%27%2Fportal%2Fg%2F%3Adevelopers%2Fide%3Fportal%3AcomponentId%3D61c4e149-f3bd-4c34-8007-92bf5f122c3c%26interactionstate%3DJBPNS_rO0ABXdMAAJvcAAAAAEADkxvYWROYXZpZ2F0aW9uAAt1aWNvbXBvbmVudAAAAAEAGFVJU3BhY2VOYXZpZ2F0aW9uUG9ydGxldAAHX19FT0ZfXw**%26portal%3Atype%3Daction%26ajaxRequest%3Dtrue%27%29');
gadget.UIGadget.createGadget('http://plf-4.0.0.alpha1-plf-upgrade-ide...;,
{"userPrefs":{},"views":{"default":{"name":"default","preferredHeight":0,"attributes":{},"type":"html","quirks":true,"preferredWidth":0}},"modulePrefs":{"screenshot":"","authorEmail":"info@exoplatform.com.ua","width":0,"authorLink":"","links":{},"scaling":false,"author":"eXo
Platform","title":"IDE","height":500,&...,
null, 'canvas',
'http://plf-4.0.0.alpha1-plf-upgrade-ide-snapshot.acceptance3.exoplatform.org/eXoGadgetServer/gadgets',
0, 0);
gadget.UIGadget.resizeFullHeight('UIGadgetViewMode-19aae43f-7e6c-4eb2-a915-71f6efaf70ba')base.Browser.onLoad();
}
);
{code}
exactly in requiring Gadget JAvascript (last):
{code}
gadget.UIGadget.resizeFullHeight('UIGadgetViewMode-19aae43f-7e6c-4eb2-a915-71f6efaf70ba')base.Browser.onLoad();});
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: