[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Detailed host/ service info popup shouldn't close while hovering over it (fixes #998)

git at icinga.org git at icinga.org
Thu Jan 13 17:54:24 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: 1911e865485ce21063df52a3f40d45fc5eb56049
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=1911e865485ce21063df52a3f40d45fc5eb56049

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Jan 10 10:46:13 2011 +0100

* Detailed host/service info popup shouldn't close while hovering over it (fixes #998)

---

 app/modules/Web/lib/js/SimpleDataProvider.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/app/modules/Web/lib/js/SimpleDataProvider.js b/app/modules/Web/lib/js/SimpleDataProvider.js
index 7895dde..6a92f22 100755
--- a/app/modules/Web/lib/js/SimpleDataProvider.js
+++ b/app/modules/Web/lib/js/SimpleDataProvider.js
@@ -99,6 +99,13 @@ Icinga.util.SimpleDataProvider = (function () {
 				
 				toolTip.render(Ext.getBody());
 				
+				toolTip.getEl().on('mouseover', function(e) {
+					// set the tooltip as the new target and clear
+					// the autoHide timer.
+					toolTip.initTarget(toolTip.getEl());
+					toolTip.showAt([]); 
+				});
+				
 				toolTip.getUpdater().update({
 					url: pub.getUrl(),
 					callback: pub.outputTable,
@@ -168,4 +175,4 @@ Icinga.util.showComments = function(oid, instanceid, target) {
 		],
 		target: target
 	});
-}
\ No newline at end of file
+}





More information about the icinga-checkins mailing list