diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-08 10:59:59 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-13 14:30:31 +0100 |
commit | 577d3fffaea05804db401736ea90b6b0436a9cde (patch) | |
tree | f489084edf64b599b33bc2e72f5b7933dfa383a4 /app/assets | |
parent | 7bd66b7612dde47a85ca19d478fdd32810eb55de (diff) | |
download | gitlab-ce-577d3fffaea05804db401736ea90b6b0436a9cde.tar.gz |
Remove title attribute from sidebar elements
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/new_sidebar.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/assets/javascripts/new_sidebar.js b/app/assets/javascripts/new_sidebar.js index cea4f35096a..f2eb2338a1e 100644 --- a/app/assets/javascripts/new_sidebar.js +++ b/app/assets/javascripts/new_sidebar.js @@ -15,7 +15,6 @@ export default class NewNavSidebar { this.$openSidebar = $('.toggle-mobile-nav'); this.$closeSidebar = $('.close-nav-button'); this.$sidebarToggle = $('.js-toggle-sidebar'); - this.$topLevelLinks = $('.sidebar-top-level-items > li > a'); } bindEvents() { @@ -56,10 +55,6 @@ export default class NewNavSidebar { this.$page.toggleClass('page-with-icon-sidebar', breakpoint === 'sm' ? true : collapsed); } NewNavSidebar.setCollapsedCookie(collapsed); - - this.$topLevelLinks.attr('title', function updateTopLevelTitle() { - return collapsed ? this.getAttribute('aria-label') : ''; - }); } render() { |