summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_qinq_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-11-12 22:44:11 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-11-12 22:44:11 -0700
commitbddc88183aa575420b6c16f8c73c3df7dc251895 (patch)
tree01ee1bae6ac51d1eb0208abf8c0ad7a8eb9e1312 /usr/local/www/interfaces_qinq_edit.php
parent6f7a997828287492588e8c35106d81d6929a5eb1 (diff)
downloadpfsense-bddc88183aa575420b6c16f8c73c3df7dc251895.zip
pfsense-bddc88183aa575420b6c16f8c73c3df7dc251895.tar.gz
Form image buttons are submit buttons and thus default buttons, causing unwanted behavior with the enter key. Use links instead, where possible.
Diffstat (limited to 'usr/local/www/interfaces_qinq_edit.php')
-rwxr-xr-xusr/local/www/interfaces_qinq_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_qinq_edit.php b/usr/local/www/interfaces_qinq_edit.php
index 52289ba..e8b698e 100755
--- a/usr/local/www/interfaces_qinq_edit.php
+++ b/usr/local/www/interfaces_qinq_edit.php
@@ -248,7 +248,7 @@ var addRowTo = (function() {
td = d.createElement("td");
td.rowSpan = "1";
- td.innerHTML = '<input type="image" src="/themes/' + theme + '/images/icons/icon_x.gif" onclick="removeRow(this);return false;" value="Delete">';
+ td.innerHTML = '<a onclick="removeRow(this);return false;" href="#"><img border="0" src="/themes/' + theme + '/images/icons/icon_x.gif" /></a>';
tr.appendChild(td);
tbody.appendChild(tr);
totalrows++;
@@ -370,7 +370,7 @@ function removeRow(el) {
<input name="members<?php echo $tracker; ?>" class="formselect" id="members<?php echo $tracker; ?>" value="<? echo $members;?>">
</td>
<td>
- <input type="image" src="/themes/<?echo $g['theme'];?>/images/icons/icon_x.gif" onclick="removeRow(this); return false;" value="<?=gettext("Delete");?>" />
+ <a onclick="removeRow(this); return false;" href="#"><img border="0" src="/themes/<?echo $g['theme'];?>/images/icons/icon_x.gif" /></a>
</td>
</tr>
<?php
OpenPOWER on IntegriCloud