Skip to content

Commit

Permalink
Remove SVG arrow from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Nantel committed Jun 4, 2018
1 parent bb8cbfb commit c31c23a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/dashboard.backend.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
jQuery(document).ready(function() {

var dashboard_menu_item = jQuery('#nav a[href$="/extension/dashboard/index/"]');
var dashboard_menu_group = dashboard_menu_item.parents('li:last');

// kill the subnav
dashboard_menu_group.find('ul').remove();
dashboard_menu_group.find('ul, svg').remove();

dashboard_menu_group
.css('cursor', 'pointer')
.remove()
.prependTo('#nav ul.content')
.bind('click', function() {
window.location.href = dashboard_menu_item.attr('href');
})
});

});

0 comments on commit c31c23a

Please sign in to comment.