mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Really fix javascript . . .
This commit is contained in:
parent
041b35ccf3
commit
d6366dd7be
@ -111,6 +111,7 @@ if (isset($id) && $a_ppps[$id]) {
|
||||
$pconfig['localip'] = explode(",",$a_ppps[$id]['localip']);
|
||||
$pconfig['gateway'] = explode(",",$a_ppps[$id]['gateway']);
|
||||
break;
|
||||
case "l2tp":
|
||||
case "pptp":
|
||||
$pconfig['localip'] = explode(",",$a_ppps[$id]['localip']);
|
||||
$pconfig['subnet'] = explode(",",$a_ppps[$id]['subnet']);
|
||||
@ -385,17 +386,17 @@ if ($_POST) {
|
||||
if (isset($_POST['mrru'][$iface]))
|
||||
$mrru_array[] = $_POST['mrru'][$iface];
|
||||
}
|
||||
if (count($bw_array))
|
||||
if (isset($bw_array))
|
||||
$ppp['bandwidth'] = implode(',', $bw_array);
|
||||
else
|
||||
unset($ppp['bandwidth']);
|
||||
|
||||
if (count($mtu_array))
|
||||
if (isset($mtu_array))
|
||||
$ppp['mtu'] = implode(',', $mtu_array);
|
||||
else
|
||||
unset($ppp['mtu']);
|
||||
|
||||
if (count($mru_array))
|
||||
if (isset($mru_array))
|
||||
$ppp['mru'] = implode(',', $mru_array);
|
||||
else
|
||||
unset($ppp['mru']);
|
||||
|
||||
@ -26,6 +26,14 @@ function show_hide_linkfields(options){
|
||||
var port_count = parseInt($('port_count').innerHTML);
|
||||
for(var j=0; j < port_count; j++){
|
||||
var count = j.toString();
|
||||
var link = "link" + count;
|
||||
var ipfields = "ipfields" + count;
|
||||
var subnet = "subnet" + count;
|
||||
$(ipfields,link).invoke('hide');
|
||||
$(subnet).disabled = true;
|
||||
}
|
||||
for(var j=0; j < options.length; j++){
|
||||
var count = select_count.toString();
|
||||
var type = $('type').value;
|
||||
var link = "link" + count;
|
||||
var lnklabel = "linklabel" + count;
|
||||
@ -39,7 +47,7 @@ function show_hide_linkfields(options){
|
||||
var subnet = "subnet" + count;
|
||||
var gateway = "gateway" + count;
|
||||
var gatewaylabel = "gatewaylabel" + count;
|
||||
|
||||
/*
|
||||
$(ipfields,link).invoke('hide');
|
||||
$(bw).name = "bandwidth[]";
|
||||
$(mtu).name = "mtu[]";
|
||||
@ -48,7 +56,8 @@ function show_hide_linkfields(options){
|
||||
$(subnet).name = "subnet[]";
|
||||
$(subnet).disabled = true;
|
||||
$(gateway).name = "gateway[]";
|
||||
if (j < options.length && options[j].selected){
|
||||
*/
|
||||
if (options[j].selected){
|
||||
$(lnklabel).innerHTML = "Link Parameters (" + options[j].value + ")";
|
||||
$(bwlabel).innerHTML = "Bandwidth (" + options[j].value + ")";
|
||||
$(bw).name = "bandwidth[" + options[j].value + "]";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user