mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Wizard: Disable the browser's form validation when navigating back
formnovalidate... The fukin awesomeness of HTML5 is sometimes even impressing a god-damned h4x0r like me. fixes #8507
This commit is contained in:
parent
d4dc0177c0
commit
d68c636359
@ -612,10 +612,11 @@ class Wizard
|
|||||||
'button',
|
'button',
|
||||||
static::BTN_PREV,
|
static::BTN_PREV,
|
||||||
array(
|
array(
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'value' => $pages[$index - 1]->getName(),
|
'value' => $pages[$index - 1]->getName(),
|
||||||
'label' => t('Back'),
|
'label' => t('Back'),
|
||||||
'decorators' => array('ViewHelper')
|
'decorators' => array('ViewHelper'),
|
||||||
|
'formnovalidate' => 'formnovalidate'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$page->addElement(
|
$page->addElement(
|
||||||
@ -633,10 +634,11 @@ class Wizard
|
|||||||
'button',
|
'button',
|
||||||
static::BTN_PREV,
|
static::BTN_PREV,
|
||||||
array(
|
array(
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
'value' => $pages[$index - 1]->getName(),
|
'value' => $pages[$index - 1]->getName(),
|
||||||
'label' => t('Back'),
|
'label' => t('Back'),
|
||||||
'decorators' => array('ViewHelper')
|
'decorators' => array('ViewHelper'),
|
||||||
|
'formnovalidate' => 'formnovalidate'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$page->addElement(
|
$page->addElement(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user