1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00

Add aria label to repo operations

This commit is contained in:
Daniel Pan
2016-04-14 13:54:13 +08:00
parent 69d3215660
commit 4c670b13c1
2 changed files with 3 additions and 4 deletions

View File

@@ -39,10 +39,10 @@
<% } %> <% } %>
<td class="repo-op-td"> <td class="repo-op-td">
<div class="op-container"> <div class="op-container">
<a href="#" class="sf2-icon-share sf2-x repo-share-btn op-icon vh" title="{% trans "Share" %}"></a> <a href="#" class="sf2-icon-share sf2-x repo-share-btn op-icon vh" title="{% trans "Share" %}" aria-label="{% trans "Share" %}"></a>
<a href="#" class="sf2-icon-delete sf2-x repo-delete-btn op-icon vh" title="{% trans "Delete" %}"></a> <a href="#" class="sf2-icon-delete sf2-x repo-delete-btn op-icon vh" title="{% trans "Delete" %}" aria-label="{% trans "Delete" %}"></a>
<div class="dropdown dropdown-inline"> <div class="dropdown dropdown-inline">
<a href="#" class="sf2-icon-caret-down more-op-icon op-icon vh dropdown-toggle" title="{% trans "More operations" %}"></a> <a href="#" class="sf2-icon-caret-down more-op-icon op-icon vh dropdown-toggle" title="{% trans "More operations" %}" aria-label="{% trans "More operations" %}"></a>
<ul class="hidden-op repo-hidden-op hide dropdown-menu"> <ul class="hidden-op repo-hidden-op hide dropdown-menu">
<li><a class="op js-repo-rename" href="#">{% trans "Rename" %}</a></li> <li><a class="op js-repo-rename" href="#">{% trans "Rename" %}</a></li>
<li><a class="op js-repo-transfer" href="#">{% trans "Transfer" %}</a></li> <li><a class="op js-repo-transfer" href="#">{% trans "Transfer" %}</a></li>

View File

@@ -23,7 +23,6 @@ define([
focus: function() { focus: function() {
// if there are dropdown items or freezeItemHightlight is set, don't highlight // if there are dropdown items or freezeItemHightlight is set, don't highlight
if (app.ui.currentDropdown || app.ui.freezeItemHightlight) { if (app.ui.currentDropdown || app.ui.freezeItemHightlight) {
console.log("app.ui.currentDropdown ");
return true; return true;
} }