Module: check_mk
Branch: master
Commit: a0c77b8a9ca1a06f074bfde19c8b922dbe07e9ef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a0c77b8a9ca1a0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 25 08:25:40 2015 +0200
Prepare for now magic movement button
---
web/htdocs/htmllib.py | 9 +++++++++
web/htdocs/images/button_magic_move_hi.png | Bin 0 -> 3399 bytes
web/htdocs/images/button_magic_move_lo.png | Bin 0 -> 3465 bytes
3 files changed, 9 insertions(+)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index e66d913..8d34682 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1570,6 +1570,15 @@ class html:
def uploaded_file(self, varname, default = None):
return self.uploads.get(varname, default)
+ def magic_move(self, helptext, ajax_url):
+ self.write('<img align=absmiddle class=iconbutton '
+ 'src="images/button_magic_move_lo.png" '
+ 'title="%s" '
+ 'onmouseover="hilite_icon(this, 1)" '
+ 'onmouseout="hilite_icon(this, 0)" '
+ 'onclick="start_magic_move(\'%s\')" >' %
(
+ (helptext, ajax_url)))
+
#
# Per request caching
#
diff --git a/web/htdocs/images/button_magic_move_hi.png
b/web/htdocs/images/button_magic_move_hi.png
new file mode 100644
index 0000000..440b2de
Binary files /dev/null and b/web/htdocs/images/button_magic_move_hi.png differ
diff --git a/web/htdocs/images/button_magic_move_lo.png
b/web/htdocs/images/button_magic_move_lo.png
new file mode 100644
index 0000000..88d5967
Binary files /dev/null and b/web/htdocs/images/button_magic_move_lo.png differ