aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTorben Nielsen <torben@t-hoerup.dk>2013-03-04 22:02:54 +0100
committerTorben Nielsen <torben@t-hoerup.dk>2013-03-04 22:02:54 +0100
commitb07c1bde3a5179b90b2e4aecdf6d2a0d08bb159e (patch)
treea45a682d806a43ecc969687e026868b95ddc48a9 /config
parent179db50fb0ed2db1836fb019e673f6632d46a668 (diff)
downloadpfsense-packages-b07c1bde3a5179b90b2e4aecdf6d2a0d08bb159e.tar.gz
pfsense-packages-b07c1bde3a5179b90b2e4aecdf6d2a0d08bb159e.tar.bz2
pfsense-packages-b07c1bde3a5179b90b2e4aecdf6d2a0d08bb159e.zip
add option fore removing a server row
Diffstat (limited to 'config')
-rw-r--r--config/haproxy-devel/haproxy_pool_edit.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy_pool_edit.php b/config/haproxy-devel/haproxy_pool_edit.php
index 78cdc7c9..fa46efb2 100644
--- a/config/haproxy-devel/haproxy_pool_edit.php
+++ b/config/haproxy-devel/haproxy_pool_edit.php
@@ -330,6 +330,9 @@ row_helper();
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit entry" width="17" height="17" border="0" onclick="editRow(<?=$counter;?>); return false;">
</td>
<td valign="middle">
+ <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="delete entry" width="17" height="17" border="0" onclick="deleteRow(<?=$counter;?>, 'servertable'); return false;">
+ </td>
+ <td valign="middle">
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="duplicate entry" width="17" height="17" border="0" onclick="dupRow(<?=$counter;?>, 'servertable'); return false;">
</td></tr></table>
</td>
@@ -681,6 +684,14 @@ function dupRow(rowId, tableId) {
}
}
+function deleteRow(rowId, tableId) {
+ var view = document.getElementById("tr_view_" + rowId);
+ var edit = document.getElementById("tr_edit_" + rowId);
+
+ view.parentNode.removeChild(view);
+ edit.parentNode.removeChild(edit);
+}
+
function removeRow(el) {
var cel;
// Break out of one table first