-
Add class
always-visitable
to parent items you want to be visitable; -
Add this js code after the row
if ( $(this).is(top_level_link) ) {
:
if ($(this).parent().hasClass('always-visitable')) {
$('<a class="hover-link"></div>')
.attr('href', $(this).attr('href'))
.on('click', function(e){ e.stopPropagation(); })
.appendTo($(this));