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

Commit

Permalink
Revert "COMMONS-420 : [IE11] Impossible to upload file from Top Navig…
Browse files Browse the repository at this point in the history
…ation bar from a page with URL containing accented characters"

This reverts commit a2f5d3b.
  • Loading branch information
thanhvc committed Nov 19, 2015
1 parent 7004fd8 commit 9bf05bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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="javascript:void(0);" onclick="$selectFileLink" class="selectFile"></a>
<a style="display:none;" href="javascript:void(0);" onclick="$selectFolderLink" class="selectFolder"></a>
<a style="display:none;" href="$selectFileLink" class="selectFile"></a>
<a style="display:none;" href="$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,15 +33,14 @@
<li>
<%
String label = _ctx.appRes(uicomponent.getId() + ".item." + option.label);
String seletedItem = uicomponent.event(selectedIndex);
if(label.length() > 30) {
%>
<a class="OptionItem" href="javascript:void(0);" onclick="$seletedItem" title="<%=label%>"> <%=label.substring(0,25)%>...</a>
<a class="OptionItem" href="<%=uicomponent.event(selectedIndex)%>" title="<%=label%>"> <%=label.substring(0,25)%>...</a>
<% } else { %>
<a class="OptionItem" href="javascript:void(0);" onclick="$seletedItem"><%=label%></a>
<a class="OptionItem" href="<%=uicomponent.event(selectedIndex)%>"><%=label%></a>
<% } %>
</li>
<% selectedIndex++;}%>

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

0 comments on commit 9bf05bb

Please sign in to comment.