Skip to content

Commit

Permalink
Resolved the issue - If the menu link is created to open in new tab t…
Browse files Browse the repository at this point in the history
…hen it opens two tabs in firefox browser - ColorlibHQ#103
  • Loading branch information
FreeWPTP committed Nov 11, 2016
1 parent 47c7d08 commit 5cefd02
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ function sparkling_make_top_level_menu_clickable(){
$( '.navbar-nav > li.menu-item > a' ).click( function(){
if( $( this ).attr('target') !== '_blank' ){
window.location = $( this ).attr( 'href' );
}else{
var win = window.open($( this ).attr( 'href' ), '_blank');
win.focus();
}
});
}
Expand Down

0 comments on commit 5cefd02

Please sign in to comment.