From c700e860089717cf36ee08a50049bdad3dfb7fe6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf <thomas@gelf.net> Date: Sat, 15 Nov 2014 23:37:31 +0100 Subject: [PATCH] FilterEditor: add helper rendering new filters --- library/Icinga/Web/Widget/FilterEditor.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index db9a973d1..3398a1e79 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -285,6 +285,19 @@ class FilterEditor extends AbstractWidget return $html; } + protected function renderNewFilter() + { + $html = $this->selectColumn() + . $this->selectSign() + . $this->text(); + + return preg_replace( + '/ class="autosubmit"/', + '', + $html + ); + } + protected function arrayForSelect($array) { $res = array();