From a2f5d3b1296cde78f3791c5a3e2d9521ffb0a98c Mon Sep 17 00:00:00 2001 From: nguyenthienhuong Date: Wed, 17 Jun 2015 09:45:48 +0700 Subject: [PATCH] COMMONS-420 : [IE11] Impossible to upload file from Top Navigation bar from a page with URL containing accented characters --- .../groovy/webui/commons/UIDocumentSelector.gtmpl | 4 ++-- .../resources/groovy/webui/commons/UIDropDownControl.gtmpl | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/commons-webui-component/src/main/resources/groovy/webui/commons/UIDocumentSelector.gtmpl b/commons-webui-component/src/main/resources/groovy/webui/commons/UIDocumentSelector.gtmpl index a77aee2174..2e986869a9 100644 --- a/commons-webui-component/src/main/resources/groovy/webui/commons/UIDocumentSelector.gtmpl +++ b/commons-webui-component/src/main/resources/groovy/webui/commons/UIDocumentSelector.gtmpl @@ -39,8 +39,8 @@ requireJs.addScripts("jq('#createNew').click(function() {commonDocument.DocumentSelector.newFolder(this);});"); %>
- - + +
<%= _ctx.appRes(uicomponent.id + '.label.select-drive')%>:   <% uicomponent.renderChild(UIDropDownControl.class);%> diff --git a/commons-webui-component/src/main/resources/groovy/webui/commons/UIDropDownControl.gtmpl b/commons-webui-component/src/main/resources/groovy/webui/commons/UIDropDownControl.gtmpl index a7fbb4a1ca..dab520bf75 100644 --- a/commons-webui-component/src/main/resources/groovy/webui/commons/UIDropDownControl.gtmpl +++ b/commons-webui-component/src/main/resources/groovy/webui/commons/UIDropDownControl.gtmpl @@ -33,14 +33,15 @@
  • <% String label = _ctx.appRes(uicomponent.getId() + ".item." + option.label); + String seletedItem = uicomponent.event(selectedIndex); if(label.length() > 30) { %> - <%=label.substring(0,25)%>... + <%=label.substring(0,25)%>... <% } else { %> - <%=label%> + <%=label%> <% } %>
  • <% selectedIndex++;}%> -
    \ No newline at end of file +