Module: check_mk
Branch: master
Commit: 8b120c18314ade60163d0b6ba4b7d193d41ca2d2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b120c18314adeā¦
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jan 31 20:02:14 2016 +0100
Slight style update for new color picker
---
web/htdocs/check_mk.css | 7 ++++++-
web/htdocs/metrics.py | 1 -
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 6bbb1b9..5a496e9 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -597,7 +597,7 @@ table.data td .cp-preview {
top: 2px;
}
-.picker-wrapper,
+.picker-wrapper,
.slide-wrapper {
position: relative;
float: left;
@@ -644,6 +644,11 @@ table.data td .cp-preview {
background-color: black;
}
+div.popup_trigger.colorpicker .popup_menu {
+ top: 17px;
+ left: 26px;
+}
+
/*--Werks------------------------------------------------------------------.
| __ __ _ |
| \ \ / /__ _ __| | _____ |
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 2014e72..d15d2d5 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -356,7 +356,6 @@ def parse_perf_data(perf_data_string, check_command=None):
# Get translation info for one performance var.
def perfvar_translation(perfvar_nr, perfvar_name, check_command):
cm = check_metrics.get(check_command, {})
-
translation_entry = {} # Default: no translation neccessary
if perfvar_name in cm: