mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
monitoring/CommandForm: remove obsolete classes
This commit is contained in:
parent
fb18de1f42
commit
e170c889d2
@ -195,7 +195,7 @@ class Zend_View_Helper_CommandForm extends Zend_View_Helper_Abstract
|
|||||||
$formCode = (string) $form;
|
$formCode = (string) $form;
|
||||||
|
|
||||||
$jsLessSubmit = '<noscript>'
|
$jsLessSubmit = '<noscript>'
|
||||||
. '<input type="submit" value="Change" class="button btn btn-cta" />'
|
. '<input type="submit" value="Change" class="button" />'
|
||||||
. '</noscript></form>';
|
. '</noscript></form>';
|
||||||
|
|
||||||
$formCode = str_replace('</form>', $jsLessSubmit, $formCode);
|
$formCode = str_replace('</form>', $jsLessSubmit, $formCode);
|
||||||
@ -204,25 +204,6 @@ class Zend_View_Helper_CommandForm extends Zend_View_Helper_Abstract
|
|||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Merges css class names together
|
|
||||||
*
|
|
||||||
* @param string $base
|
|
||||||
* @param string $additional
|
|
||||||
* @param string ...
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
private function mergeClass($base, $additional)
|
|
||||||
{
|
|
||||||
$args = func_get_args();
|
|
||||||
$base = explode(' ', array_shift($args));
|
|
||||||
while (($additional = array_shift($args))) {
|
|
||||||
$base = array_merge($base, explode(' ', $additional));
|
|
||||||
}
|
|
||||||
return implode(' ', $base);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @codingStandardsIgnoreStop
|
// @codingStandardsIgnoreStop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user