Module: check_mk
Branch: master
Commit: 2ab2030b3ec5085d32f26ac8081aeaab7fb408f9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ab2030b3ec508…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 14 10:14:07 2013 +0200
showing help text of rulesets only via hover
---
web/htdocs/js/checkmk.js | 10 ----------
web/htdocs/wato.css | 10 ----------
web/htdocs/wato.py | 3 +--
3 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 2fcd72a..c65cabd 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1761,16 +1761,6 @@ function help_switch(how) {
helpdivs[i].style.display = how ? "block" : "none";
}
- // small hack for wato ruleset lists, toggle the "nofloat" class
- // on those objects to make the layout possible
- var rulesetdivs = document.getElementsByClassName('ruleset');
- for (var i = 0; i < rulesetdivs.length; i++) {
- if (how)
- add_class(rulesetdivs[i], 'nofloat');
- else
- remove_class(rulesetdivs[i], 'nofloat');
- }
-
get_url("ajax_switch_help.py?enabled=" + (how ? "yes" :
""));
}
diff --git a/web/htdocs/wato.css b/web/htdocs/wato.css
index 90d82bc..134a24a 100644
--- a/web/htdocs/wato.css
+++ b/web/htdocs/wato.css
@@ -781,16 +781,6 @@ div.rulesets table.nform tr.bottom td {
/* color: #444; */
}
-.wato .rulesets div.ruleset.nofloat {
- float: none;
- clear: left;
-}
-
-.wato .rulesets div.ruleset div.help {
- height: auto;
- clear: left;
-}
-
/* Page edit_ruleset */
div.varname {
color: white;
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5fe0ffd..d75bc24 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10304,13 +10304,12 @@ def mode_rulesets(phase):
if only_host:
url_vars.append(("host", only_host))
view_url = make_link(url_vars)
- html.write('<div class=ruleset><div class=text>')
+ html.write('<div class=ruleset title="%s"><div
class=text>' % html.strip_tags(rulespec["help"]))
html.write('<a class="%s"
href="%s">%s</a>' %
(num_rules and "nonzero" or "zero", view_url,
rulespec["title"]))
html.write('<span class=dots>%s</span></div>' %
("." * 100))
html.write('<div class="rulecount %s"
title="%s">%d</div>' %
(num_rules and "nonzero" or "zero", title,
num_rules))
- html.help(rulespec["help"])
html.write('</div>')
if something_shown: