Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
COMMONS-420 : [IE11] Impossible to upload file from Top Navigation ba…
Browse files Browse the repository at this point in the history
…r from a page with URL containing accented characters
  • Loading branch information
nguyenthienhuong authored and minhdv committed Nov 16, 2015
1 parent 0fad6b0 commit a2f5d3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -39,8 +39,8 @@
requireJs.addScripts("jq('#createNew').click(function() {commonDocument.DocumentSelector.newFolder(this);});");
%>
<div class="uiDocumentSelector" id="$uicomponent.id">
<a style="display:none;" href="$selectFileLink" class="selectFile"></a>
<a style="display:none;" href="$selectFolderLink" class="selectFolder"></a>
<a style="display:none;" href="javascript:void(0);" onclick="$selectFileLink" class="selectFile"></a>
<a style="display:none;" href="javascript:void(0);" onclick="$selectFolderLink" class="selectFolder"></a>
<div class="center">
<%= _ctx.appRes(uicomponent.id + '.label.select-drive')%>:&nbsp;&nbsp;
<% uicomponent.renderChild(UIDropDownControl.class);%>
Expand Down
Expand Up @@ -33,14 +33,15 @@
<li>
<%
String label = _ctx.appRes(uicomponent.getId() + ".item." + option.label);
String seletedItem = uicomponent.event(selectedIndex);
if(label.length() > 30) {
%>
<a class="OptionItem" href="<%=uicomponent.event(selectedIndex)%>" title="<%=label%>"> <%=label.substring(0,25)%>...</a>
<a class="OptionItem" href="javascript:void(0);" onclick="$seletedItem" title="<%=label%>"> <%=label.substring(0,25)%>...</a>
<% } else { %>
<a class="OptionItem" href="<%=uicomponent.event(selectedIndex)%>"><%=label%></a>
<a class="OptionItem" href="javascript:void(0);" onclick="$seletedItem"><%=label%></a>
<% } %>
</li>
<% selectedIndex++;}%>

</ul>
</div>
</div>

0 comments on commit a2f5d3b

Please sign in to comment.