diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-08-11 20:26:46 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-08-11 20:26:52 -0400 |
commit | 46d8071ea4285a25e5aa5a5e25a745be17764af6 (patch) | |
tree | 46aaf17fa8b3f88860de2d26888ce0d27cb61e84 | |
parent | ea6be4a7526700caa0102e271644658353065218 (diff) | |
download | pfsense-46d8071ea4285a25e5aa5a5e25a745be17764af6.zip pfsense-46d8071ea4285a25e5aa5a5e25a745be17764af6.tar.gz |
Hide Save button until a drop down onChange event occurs
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 1acebd5..a67934f 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -425,9 +425,9 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed")) <tr> <td class="listlr" valign="middle"><strong><?=$ifdescr;?></strong></td> <td valign="middle" class="listr"> - <select name="<?=$ifname;?>" id="<?=$ifname;?>"> + <select onChange="javascript:$('savediv').appear();" name="<?=$ifname;?>" id="<?=$ifname;?>"> <?php foreach ($portlist as $portname => $portinfo): ?> - <option value="<?=$portname;?>" <?php if ($portname == $iface['if']) echo " selected";?>> + <option value="<?=$portname;?>" <?php if ($portname == $iface['if']) echo " selected";?>> <?php if ($portinfo['isvlan']) { $descr = sprintf(gettext("VLAN %s on %s"),$portinfo['tag'],$portinfo['if']); if ($portinfo['descr']) @@ -490,8 +490,10 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed")) </table> </div> <br/> -<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"><br><br> -<p> +<div name='savediv' id='savediv' style='display:none;'> + <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"><br><br> + <p> +</div> </p> <ul> <li><span class="vexpl"><?=gettext("change the IP address of your computer"); ?></span></li> |