Fix click popagation to both new and actual tab when CTRL+Click
This solved the issue #829
This commit is contained in:
1 parent
287d8e3e18
commit
1554987e62
1 file changed
+8
-1
@@ -29,5 +29,12 @@ jQuery(function(){
|
||||
}
|
||||
hoverMenu(); // first page load
|
||||
jQuery(window).resize(hoverMenu); // on resize event
|
||||
jQuery('ul.nav li.dropdown a').click(function(){window.location=jQuery(this).attr('href');});
|
||||
jQuery('ul.nav li.dropdown a').click(function(event){
|
||||
event.stopProgpagation();
|
||||
if(event.originalEvent.ctrlKey){
|
||||
window.open(jQuery(this).attr('href'), "_blank");
|
||||
} else {
|
||||
window.location.href=jQuery(this).attr('href');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user