diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-01-05 17:19:35 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-01-05 17:19:35 +0000 |
commit | 47985993ee1f5b8eb89549d8bc547cdd0b7ae590 (patch) | |
tree | a36f59ec5b52a79abadffdc02482c1db4b4d007b /usr/local/www/interfaces.php | |
parent | b09a92b7d17e6fb1a8a0f07f8959e62e8d08526b (diff) | |
download | pfsense-47985993ee1f5b8eb89549d8bc547cdd0b7ae590.zip pfsense-47985993ee1f5b8eb89549d8bc547cdd0b7ae590.tar.gz |
Effect.toggle is not behaving correctly use show/hide as with others in this page to be consistent and fix periodic reset GUI not showing.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 5136e45..498aa0f 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -712,6 +712,13 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" else $('allcfg').hide(); } + + function show_periodic_reset(obj) { + if (obj.checked) + $('presetwrap').show(); + else + $('presetwrap').hide(); + } function show_mon_config() { document.getElementById("showmonbox").innerHTML=''; @@ -995,7 +1002,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Periodic reset");?></td> <td width="78%" class="vtable"> - <input name="pppoe_preset" type="checkbox" id="pppoe_preset" value="yes" <?php if ($pconfig['pppoe_preset']) echo "checked=\"checked\""; ?> onclick="Effect.toggle('presetwrap', 'show', { duration: 0.0 });" /> + <input name="pppoe_preset" type="checkbox" id="pppoe_preset" value="yes" <?php if ($pconfig['pppoe_preset']) echo "checked=\"checked\""; ?> onclick="show_periodic_reset(this);" /> <?= gettext("enable periodic PPPoE resets"); ?> <br /> <?php if ($pconfig['pppoe_preset']): ?> |