[checkmk-commits] Check_MK Git: check_mk: Ignored checks: 25 instead of 5 rows in check type selection

Mathias Kettner mk at mathias-kettner.de
Tue Apr 7 14:02:28 CEST 2015


Module: check_mk
Branch: master
Commit: f05a3bd6e999367f8be4a5d9a4c26498cd352124
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f05a3bd6e999367f8be4a5d9a4c26498cd352124

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Tue Apr  7 14:02:25 2015 +0200

Ignored checks: 25 instead of 5 rows in check type selection

---

 web/htdocs/valuespec.py |    5 +++--
 web/htdocs/wato.py      |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 70e58be..d12bd44 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -1592,6 +1592,7 @@ class DualListChoice(ListChoice):
         self._custom_order = kwargs.get("custom_order", False)
         self._instant_add = kwargs.get("instant_add", False)
         self._enlarge_active = kwargs.get("enlarge_active", False)
+        self._rows = kwargs.get("rows", 5)
 
     def render_input(self, varprefix, value):
         self.load_elements()
@@ -1643,7 +1644,7 @@ class DualListChoice(ListChoice):
 
         html.sorted_select(varprefix + '_unselected', unselected,
                            attrs = {
-                               'size'       : 5,
+                               'size'       : self._rows,
                                'multiple'   : 'multiple',
                                'style'      : self._autoheight and 'height:auto' or '',
                                'ondblclick' : not self._instant_add and select_func or '',
@@ -1653,7 +1654,7 @@ class DualListChoice(ListChoice):
         func = self._custom_order and html.select or html.sorted_select
         func(varprefix + '_selected', selected,
                            attrs = {
-                               'size'       : 5,
+                               'size'       : self._rows,
                                'multiple'   : 'multiple',
                                'style'      : self._autoheight and 'height:auto' or '',
                                'ondblclick' : not self._instant_add and unselect_func or '',
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d9a0ffa..653a55f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7089,7 +7089,7 @@ def factory_reset():
 
 class CheckTypeSelection(DualListChoice):
     def __init__(self, **kwargs):
-        DualListChoice.__init__(self, **kwargs)
+        DualListChoice.__init__(self, rows=25, **kwargs)
 
     def get_elements(self):
         checks = check_mk_local_automation("get-check-information")



More information about the checkmk-commits mailing list