diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-02-22 20:50:32 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-02-22 20:50:32 -0800 |
commit | ca4467bc0edaefef188f776f9c0218a85f813db8 (patch) | |
tree | 105c3a23d051486f320171713936016822a84a35 | |
parent | 6e31ca39ab0204b4190b50b3bd356608c026936f (diff) | |
download | pfsense-ca4467bc0edaefef188f776f9c0218a85f813db8.zip pfsense-ca4467bc0edaefef188f776f9c0218a85f813db8.tar.gz |
Better done globally here in the function.
-rwxr-xr-x | usr/local/www/interfaces.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 758df8f..2a039c4 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -1389,6 +1389,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), jQuery('#'+t).show(); } function updateTypeSix(t) { + if (!isNaN(t[0])) t = '_' + t; switch(t) { case "none": { jQuery('#staticv6, #dhcp6, #_6rd, #_6to4, #track6, #slaac').hide(); @@ -1602,7 +1603,6 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), <select name="type6" onchange="updateTypeSix(this.value);" class="formselect" id="type6"> <?php foreach ($types6 as $key => $opt) { - if (is_numeric($key[0])) $key = '_' . $key; echo "<option onclick=\"updateTypeSix('{$key}');\""; if ($key == $pconfig['type6']) echo " selected=\"selected\""; |