[icinga-checkins] icinga.org: icinga-doc/master: docs issue #3561: middle-clicking in TOC doesn't work

git at icinga.org git at icinga.org
Thu Apr 4 20:29:50 CEST 2013


Module: icinga-doc
Branch: master
Commit: 1fb000f81f38566b41c5b7f70d2646acd4b8b9ed
URL:    https://git.icinga.org/?p=icinga-doc.git;a=commit;h=1fb000f81f38566b41c5b7f70d2646acd4b8b9ed

Author: Wolfgang <wnd at gmx.net>
Date:   Thu Apr  4 20:28:39 2013 +0200

docs issue #3561: middle-clicking in TOC doesn't work

---

 js/icinga-docs.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/js/icinga-docs.js b/js/icinga-docs.js
index c8ee978..237ff60 100644
--- a/js/icinga-docs.js
+++ b/js/icinga-docs.js
@@ -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,





More information about the icinga-checkins mailing list