diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:10:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:10:25 +0000 |
commit | fc6ea0128957eefd5f15333357384f520e870dd9 (patch) | |
tree | f43ae363428071e41005fc2b990b3719269a9752 /usr/local/www/interfaces.php | |
parent | 5b077e3f42c670004c203574afe4ff264ee7696f (diff) | |
download | pfsense-fc6ea0128957eefd5f15333357384f520e870dd9.zip pfsense-fc6ea0128957eefd5f15333357384f520e870dd9.tar.gz |
Hide gw save and cancel button after clicking save
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index a4a8c64..8c855cb 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -879,8 +879,8 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" <tr> <td colspan="2" align="right"> <div id='savebuttondiv'> - <input type="Button" value="Save Gateway" onClick='hide_add_gatewaysave();'> - <input type="Button" value="Cancel" onClick='hide_add_gateway();'> + <input id="gwsave" type="Button" value="Save Gateway" onClick='hide_add_gatewaysave();'> + <input id="gwcancel" type="Button" value="Cancel" onClick='hide_add_gateway();'> </div> </td> </tr> @@ -1408,8 +1408,12 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" document.getElementById("gateway").style.display = ''; document.getElementById("save").style.display = ''; document.getElementById("cancel").style.display = ''; + document.getElementById("gwsave").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(); |