diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:15:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:15:37 +0000 |
commit | 295447defe9c6962728efc335c32c5310de97885 (patch) | |
tree | d40d6a8f5bb7c0864edbd996200dbbdb62a3e764 /usr/local/www/interfaces.php | |
parent | 90f106f1287cc513f96fbb3af8005f546043a8c6 (diff) | |
download | pfsense-295447defe9c6962728efc335c32c5310de97885.zip pfsense-295447defe9c6962728efc335c32c5310de97885.tar.gz |
Use name, not gateway ip
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index f076426..cb52b49 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -1395,6 +1395,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" <script language="JavaScript"> <!-- var gatewayip; + var name; function show_add_gateway() { document.getElementById("addgateway").style.display = ''; document.getElementById("addgwbox").style.display = 'none'; @@ -1416,7 +1417,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" function hide_add_gatewaysave() { $('status').innerHTML = '<img src="/themes/metallic/images/misc/loader.gif">'; var iface = $F('if'); - var name = $('name').getValue(); + name = $('name').getValue(); var descr = $('gatewaydescr').getValue(); gatewayip = $('gatewayip').getValue(); var url = "system_gateways_edit.php"; @@ -1444,7 +1445,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" document.getElementById("addgateway").style.display = 'none'; hide_add_gateway(); $('status').innerHTML = ''; - addOption($('gateway'), gatewayip, gatewayip); + addOption($('gateway'), name, name); } <?php if ($if == "wan" || $if == "lan") |