Module: check_mk
Branch: master
Commit: 890c1107170330910f14280a05d530dacad2e892
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=890c1107170330…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 5 18:19:22 2014 +0100
Fixed visual add to dashboard popup styling
---
web/htdocs/js/checkmk.js | 29 ++++++++++++++---------------
web/htdocs/pages.css | 13 +++++++------
web/htdocs/status.css | 2 +-
3 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 163dda4..0f8a9bf 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -2235,7 +2235,7 @@ function handle_visualadd_close(event) {
var target = getTarget(event);
// Check whether or not a parent of the clicked node is the popup menu
- while (target && target.id != 'visualadd_popup' &&
!has_class(target, 'statusicon')) {
+ while (target && target.id != 'visualadd_popup' &&
!has_class(target, 'visualadd')) {
target = target.parentNode;
}
@@ -2301,20 +2301,19 @@ function add_dashboard_response_handler(data, response_text)
}
function fix_visualadd_menu_position(event, menu) {
- var target = getTarget(event);
- var dashboard = document.getElementById('dashboard');
-
- // When menu is out of screen on the right, move to left
- if (menu.offsetLeft + menu.clientWidth > pageWidth()) {
- menu.style.left = (menu.offsetLeft - menu.clientWidth - 15) + 'px';
- menu.style.right = 'auto';
- }
-
- // When menu is out of screen on the top, move to bottom
- if (menu.offsetTop < 0) {
- menu.style.top = (menu.offsetTop + menu.clientHeight) + 'px';
- menu.style.bottom = 'auto';
- }
+ //var target = getTarget(event);
+ //
+ //// When menu is out of screen on the right, move to left
+ //if (menu.offsetLeft + menu.clientWidth > pageWidth()) {
+ // menu.style.left = (menu.offsetLeft - menu.clientWidth - 15) + 'px';
+ // menu.style.right = 'auto';
+ //}
+
+ //// When menu is out of screen on the top, move to bottom
+ //if (menu.offsetTop < 0) {
+ // menu.style.top = (menu.offsetTop + menu.clientHeight) + 'px';
+ // menu.style.bottom = 'auto';
+ //}
}
function add_to_visual(visual_type, name)
diff --git a/web/htdocs/pages.css b/web/htdocs/pages.css
index 8676337..ce7e72d 100644
--- a/web/htdocs/pages.css
+++ b/web/htdocs/pages.css
@@ -901,7 +901,7 @@ div.help tt {
| |_| |_| |
'-------------------------------------------------------------------------*/
-.popup_menu {
+body.main .popup_menu {
position: absolute;
bottom: 15px;
left: 15px;
@@ -919,20 +919,21 @@ div.help tt {
border-radius: 5px;
}
-.popup_menu img {
+body.main .popup_menu img {
width: 12px;
height: auto;
vertical-align: bottom;
}
-.popup_menu ul {
+body.main .popup_menu ul {
list-style: none;
margin: 0;
padding: 0px 5px 5px 10px;
}
+body.main .popup_menu a,
body.main table.footer .popup_menu a,
-.popup_menu span {
+body.main .popup_menu span {
display: block;
padding-top: 1px;
padding-bottom: 1px;
@@ -941,17 +942,17 @@ body.main table.footer .popup_menu a,
color: #fff;
}
-.popup_menu span {
+body.main .popup_menu span {
padding-left: 0px;
font-weight: bold;
margin-top: 8px;
}
+body.main .popup_menu a:hover,
body.main table.footer .popup_menu a:hover {
text-decoration: underline;
}
-
/*--Various----------------------------------------------------------------.
| __ __ _ |
| \ \ / /_ _ _ __(_) ___ _ _ ___ |
diff --git a/web/htdocs/status.css b/web/htdocs/status.css
index d47f987..0631c30 100644
--- a/web/htdocs/status.css
+++ b/web/htdocs/status.css
@@ -369,7 +369,7 @@ table.data tr.data td.pnpgraph {
padding: 0;
}
-tr.data td.pnpgraph img {
+tr.data td.pnpgraph div.graph > a > img {
border: 1px solid #888;
margin: 4px 4px 4px 4px;
box-shadow: 1px 1px 3px #000000;