Author: kien_nguyen
Date: 2010-05-13 02:32:28 -0400 (Thu, 13 May 2010)
New Revision: 3072
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIFormInputThemeSelector.js
portal/trunk/web/portal/src/main/webapp/groovy/webui/form/UIFormInputThemeSelector.gtmpl
Log:
GTNPORTAL-1070 Translate GateIn in VNeses (update picture 4.jpg
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIFormInputThemeSelector.js
===================================================================
---
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIFormInputThemeSelector.js 2010-05-13
03:08:19 UTC (rev 3071)
+++
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/webui/UIFormInputThemeSelector.js 2010-05-13
06:32:28 UTC (rev 3072)
@@ -47,8 +47,11 @@
detailList.className = "UIThemeSelector " + param ;
var nameTheme = DOMUtil.findNextElementByTagName(detailList,'div') ;
- nameTheme.innerHTML = "Default Theme"
+ //get default theme name from a hidden field
+ var defaultNameTheme = DOMUtil.findNextElementByTagName(nameTheme,'input') ;
+ nameTheme.innerHTML = defaultNameTheme.value ;
+
// get hide input
var itemListContainer =
DOMUtil.findPreviousElementByTagName(itemDetailList,'div') ;
var itemThemeSelector =
DOMUtil.findFirstDescendantByClass(itemListContainer,'div','ItemList') ;
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/webui/form/UIFormInputThemeSelector.gtmpl
===================================================================
---
portal/trunk/web/portal/src/main/webapp/groovy/webui/form/UIFormInputThemeSelector.gtmpl 2010-05-13
03:08:19 UTC (rev 3071)
+++
portal/trunk/web/portal/src/main/webapp/groovy/webui/form/UIFormInputThemeSelector.gtmpl 2010-05-13
06:32:28 UTC (rev 3072)
@@ -9,6 +9,7 @@
def selectedCategory =
uicomponent.getChild(UIItemThemeSelector.class).getSelectedCategory() ;
String selectedThemeName =
uicomponent.getChild(UIItemThemeSelector.class).getSelectedTheme() ;
def uiParentComponent = uicomponent.getParent() ;
+ String defaultThemeName = _ctx.appRes(uicomponent.getId() +
".UIItemThemeSelector.item.DefaultTheme" ) ;
%>
<div class="UIItemSelector UIFormInputThemeSelector"
id="$uicomponent.id">
<div class="LeftColumnStyle">
@@ -67,6 +68,7 @@
</div>
<div class="NameTheme"><%= _ctx.appRes(uicomponent.getId() +
".UIItemThemeSelector.item." + selectedThemeName ) %></div>
+ <input type="hidden" name="HiddenDefaultThemeName"
value="$defaultThemeName">
</div>
</div>
Show replies by date