mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
FilterEditor: elementId helper method for inputs
This commit is contained in:
parent
7993ad2fde
commit
711b1a5224
@ -299,6 +299,15 @@ class FilterEditor extends AbstractWidget
|
||||
return $res;
|
||||
}
|
||||
|
||||
protected function elementId($prefix, Filter $filter = null)
|
||||
{
|
||||
if ($filter === null) {
|
||||
return $prefix . '_new_' . ($this->addTo ?: '0');
|
||||
} else {
|
||||
return $prefix . '_' . $filter->getId();
|
||||
}
|
||||
}
|
||||
|
||||
protected function selectSign($filter)
|
||||
{
|
||||
$name = 'sign_' . $filter->getId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user