summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-08-11 20:26:46 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-08-11 20:26:52 -0400
commit46d8071ea4285a25e5aa5a5e25a745be17764af6 (patch)
tree46aaf17fa8b3f88860de2d26888ce0d27cb61e84
parentea6be4a7526700caa0102e271644658353065218 (diff)
downloadpfsense-46d8071ea4285a25e5aa5a5e25a745be17764af6.zip
pfsense-46d8071ea4285a25e5aa5a5e25a745be17764af6.tar.gz
Hide Save button until a drop down onChange event occurs
-rwxr-xr-xusr/local/www/interfaces_assign.php10
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>
OpenPOWER on IntegriCloud