[icinga-checkins] icinga.org: icingaweb2/feature/filter-styles: Optimize filter editor markup

git at icinga.org git at icinga.org
Wed Nov 9 16:39:23 CET 2016


Module: icingaweb2
Branch: feature/filter-styles
Commit: 3aeb8790372967f92951067373301c256fa5f5ce
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=3aeb8790372967f92951067373301c256fa5f5ce

Author: Florian Strohmaier <florian.strohmaier at netways.de>
Date:   Wed Nov  9 16:17:26 2016 +0100

Optimize filter editor markup

---

 library/Icinga/Web/Widget/FilterEditor.php |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 0b152b7..a0cf3c4 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -733,7 +733,7 @@ class FilterEditor extends AbstractWidget
         return $filter;
     }
 
-    public function public function renderFilterBuilder()
+    public function renderFilterBuilder()
     {
         return '<form action="'
             . Url::fromRequest()
@@ -806,18 +806,6 @@ class FilterEditor extends AbstractWidget
         }
         return '<div class="filter">'
             . $this->renderSearch()
-            . '<form action="'
-            . Url::fromRequest()
-            . '" class="editor" method="POST">'
-            . '<ul class="tree"><li>'
-            . $this->renderFilter($this->filter)
-            . '</li></ul>'
-            . '<div class="buttons">'
-            . '<input type="submit" name="submit" value="Apply" />'
-            . '<input type="submit" name="cancel" value="Cancel" />'
-            . '</div>'
-            . '<input type="hidden" name="formUID" value="FilterEditor">'
-            . '</form>'
             . $this->renderFilterField($this->filter)
             . $this->renderFilterBuilder()
             . '</div>';



More information about the icinga-checkins mailing list