ignore JS only links when simplifying the sidebar
This commit is contained in:
parent
fb36ed4220
commit
63c9c46151
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ jQuery(function () {
|
|||
* and use a direct link.
|
||||
*/
|
||||
var $links = jQuery($wrap[0]).find('a');
|
||||
if ($links.length == 1) {
|
||||
if ($links.length === 1 && $links.first().attr('href') !== '#') {
|
||||
$toggler.children().first().attr('href', jQuery($links[0]).attr('href'));
|
||||
} else {
|
||||
$wrap.insertAfter($me);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue