summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-09-14 01:33:11 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-09-14 01:59:45 -0600
commit331a89ca5b2f0dacacfd18d04fa29163961b74c6 (patch)
tree19d4bb5793479c31d286bfb46aa1c9a86b14dae8 /usr/local
parent1cfb2b7796f0c1e9b5331e5527b31943a05bbb97 (diff)
downloadpfsense-331a89ca5b2f0dacacfd18d04fa29163961b74c6.zip
pfsense-331a89ca5b2f0dacacfd18d04fa29163961b74c6.tar.gz
Fix the delete button and a couple other small errors. Ticket #891
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php7
-rwxr-xr-xusr/local/www/javascript/row_helper.js2
-rwxr-xr-xusr/local/www/javascript/row_helper_dynamic.js2
3 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index f66766a..3cadc3f 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -641,7 +641,7 @@ EOD;
<input name="detail<?php echo $tracker; ?>" type="text" class="formfld unknown" id="detail<?php echo $tracker; ?>" size="50" value="<?=$item4;?>" />
</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" alt="" title="<?=gettext("remove this entry"); ?>" /></a>
</td>
</tr>
<?php
@@ -656,8 +656,7 @@ EOD;
</tfoot>
</table>
<div id="addrowbutton"><a onclick="javascript:addRowTo('maintable', 'formfldalias'); typesel_change(); add_alias_control(this); return false;" href="#">
- <img border="0" src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" alt="" title="<?=gettext("add another entry"); ?>" /></div>
- </a>
+ <img border="0" src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" alt="" title="<?=gettext("add another entry"); ?>" /></a></div>
</td>
</tr>
<tr>
@@ -702,7 +701,7 @@ function createAutoSuggest() {
?>
}
-setTimeOut("createAutoSuggest();", 500);
+setTimeout("createAutoSuggest();", 500);
</script>
diff --git a/usr/local/www/javascript/row_helper.js b/usr/local/www/javascript/row_helper.js
index 5e8df31..68a00bd 100755
--- a/usr/local/www/javascript/row_helper.js
+++ b/usr/local/www/javascript/row_helper.js
@@ -40,7 +40,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++;
diff --git a/usr/local/www/javascript/row_helper_dynamic.js b/usr/local/www/javascript/row_helper_dynamic.js
index 032874c..210e416 100755
--- a/usr/local/www/javascript/row_helper_dynamic.js
+++ b/usr/local/www/javascript/row_helper_dynamic.js
@@ -44,7 +44,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);
});
OpenPOWER on IntegriCloud