mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
69c8ed471b
commit
8c2b6ae665
@ -735,8 +735,10 @@ class FilterEditor extends AbstractWidget
|
|||||||
|
|
||||||
public function renderSearch()
|
public function renderSearch()
|
||||||
{
|
{
|
||||||
|
$preservedUrl = $this->preservedUrl();
|
||||||
|
|
||||||
$html = ' <form method="post" class="search inline" action="'
|
$html = ' <form method="post" class="search inline" action="'
|
||||||
. $this->preservedUrl()
|
. $preservedUrl
|
||||||
. '"><input type="text" name="q" style="width: 8em" class="search" value="" placeholder="'
|
. '"><input type="text" name="q" style="width: 8em" class="search" value="" placeholder="'
|
||||||
. t('Search...')
|
. t('Search...')
|
||||||
. '" /></form>';
|
. '" /></form>';
|
||||||
@ -749,12 +751,10 @@ class FilterEditor extends AbstractWidget
|
|||||||
$title .= ': ' . $this->view()->escape($this->filter);
|
$title .= ': ' . $this->view()->escape($this->filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$addOrPurgeModifyFilter = !($this->preservedUrl()->getParam('modifyFilter'));
|
|
||||||
|
|
||||||
return $html
|
return $html
|
||||||
. '<a href="'
|
. '<a href="'
|
||||||
. $this->preservedUrl()->with('modifyFilter', $addOrPurgeModifyFilter)
|
. $preservedUrl->with('modifyFilter', ! $preservedUrl->getParam('modifyFilter'))
|
||||||
. '" aria-label="'
|
. '" aria-label="'
|
||||||
. $title
|
. $title
|
||||||
. '" title="'
|
. '" title="'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user