Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
docs issue #3561: middle-clicking in TOC doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
wnieder committed Apr 4, 2013
1 parent b8bac09 commit 1fb000f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/icinga-docs.js
Expand Up @@ -26,7 +26,15 @@ $(document).ready(function() {

//open new window if ctrl key was pressed
if(e.ctrlKey) {
target = '_blank';
if(target === undefined) {
target = '_blank';
}
}
//open new window if middle mouse button was pressed
if(e.which == 2) {
if(target === undefined) {
target = '_blank';
}
}

//if target was undefined, open in the same window,
Expand Down

0 comments on commit 1fb000f

Please sign in to comment.