[icinga-checkins] icinga.org: icingaweb2/master: FilterEditor: addTo method for special operations

git at icinga.org git at icinga.org
Sun Nov 16 00:38:42 CET 2014


Module: icingaweb2
Branch: master
Commit: 88580695149d59fb7ff28d514d2001b977f6f2f7
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=88580695149d59fb7ff28d514d2001b977f6f2f7

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Nov 15 23:27:58 2014 +0100

FilterEditor: addTo method for special operations

Removed obsolete mark function

---

 library/Icinga/Web/Widget/FilterEditor.php |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 6a20754..c022800 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -28,6 +28,8 @@ class FilterEditor extends AbstractWidget
 
     protected $url;
 
+    protected $addTo;
+
     protected $preserveParams = array();
 
     protected $ignoreParams = array();
@@ -131,9 +133,9 @@ class FilterEditor extends AbstractWidget
         return $html;
     }
 
-    public function markIndex($idx)
+    protected function addFilterToId($id)
     {
-        $this->selectedIdx = $idx;
+        $this->addTo = $id;
         return $this;
     }
 



More information about the icinga-checkins mailing list