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:
Renato Botelho 2013-04-23 12:40:31 -03:00
parent ead734fe8e
commit e22e834d63

View File

@ -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']);