Module: check_mk
Branch: master
Commit: 4961bc48bed40164adc12dea60d2185c17c0eced
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4961bc48bed401…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jun 15 10:51:12 2012 +0200
context_buttons can have a hover title now
---
web/htdocs/htmllib.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 4caab07..1828f83 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -433,7 +433,7 @@ class html:
self.write("</td></tr></table>\n")
self.context_buttons_open = False
- def context_button(self, title, url, icon=None, hot=False, id=None, bestof=None):
+ def context_button(self, title, url, icon=None, hot=False, id=None, bestof=None,
hover_title=''):
display = "block"
if bestof:
counts = config.load_user_file("buttoncounts", {})
@@ -457,6 +457,8 @@ class html:
self.context_button_hover_code(hot and "_hot" or "")
self.write('>')
self.write('<a href="%s"' % url)
+ if hover_title:
+ self.write(' title="%s"' % hover_title)
if bestof:
self.write(' onmousedown="count_context_button(this);
document.location=this.href; " ')
self.write('>%s</a></div>\n' % title)