diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:14:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:14:51 +0000 |
commit | 90f106f1287cc513f96fbb3af8005f546043a8c6 (patch) | |
tree | 626744cf1a1e5e8910ff08ca796f4cd78bac420f /usr/local/www/interfaces.php | |
parent | fc6ea0128957eefd5f15333357384f520e870dd9 (diff) | |
download | pfsense-90f106f1287cc513f96fbb3af8005f546043a8c6.zip pfsense-90f106f1287cc513f96fbb3af8005f546043a8c6.tar.gz |
Correct restore state
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 8c855cb..f076426 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -1401,6 +1401,8 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" document.getElementById("gateway").style.display = 'none'; document.getElementById("save").style.display = 'none'; document.getElementById("cancel").style.display = 'none'; + document.getElementById("gwsave").style.display = ''; + document.getElementById("gwcancel").style.display = ''; } function hide_add_gateway() { document.getElementById("addgateway").style.display = 'none'; @@ -1409,11 +1411,9 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" document.getElementById("save").style.display = ''; document.getElementById("cancel").style.display = ''; document.getElementById("gwsave").style.display = ''; - document.getElementById("gwcancel").style.display = ''; + document.getElementById("gwcancel").style.display = ''; } function hide_add_gatewaysave() { - document.getElementById("gwsave").style.display = 'none'; - document.getElementById("gwcancel").style.display = 'none'; $('status').innerHTML = '<img src="/themes/metallic/images/misc/loader.gif">'; var iface = $F('if'); var name = $('name').getValue(); @@ -1442,6 +1442,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" } function save_callback() { document.getElementById("addgateway").style.display = 'none'; + hide_add_gateway(); $('status').innerHTML = ''; addOption($('gateway'), gatewayip, gatewayip); } |