mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
When <disableallfieldsbydefault> is set on a wizard, call enablechange(), disablechange() and showchange() after disableall() functions to avoid issues when it was previously enabled and fields have values
This commit is contained in:
parent
ead734fe8e
commit
e22e834d63
@ -818,16 +818,6 @@ function showchange() {
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
NiftyCheck();
|
||||
var bgcolor = document.getElementsByTagName("body")[0].style.backgroundColor;
|
||||
Rounded("div#roundme","all",bgcolor,"#FFFFFF","smooth");
|
||||
enablechange();
|
||||
disablechange();
|
||||
showchange();
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
@ -880,8 +870,20 @@ if($pkg['step'][$stepid]['disableallfieldsbydefault'] <> "") {
|
||||
echo "//]]>\n";
|
||||
echo "</script>\n\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
NiftyCheck();
|
||||
var bgcolor = document.getElementsByTagName("body")[0].style.backgroundColor;
|
||||
Rounded("div#roundme","all",bgcolor,"#FFFFFF","smooth");
|
||||
enablechange();
|
||||
disablechange();
|
||||
showchange();
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php
|
||||
if($pkg['step'][$stepid]['stepafterformdisplay'] <> "") {
|
||||
// handle after form display event.
|
||||
eval($pkg['step'][$stepid]['stepafterformdisplay']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user