diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-11-19 21:55:21 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2014-11-19 21:55:21 +0100 |
commit | f3e95b3ea13324448032a65ad9c739f56101397c (patch) | |
tree | f1c20acfd9f15b15502fcaa7e38be3bae6f26bdf /config | |
parent | 8bb837600eba8f0df3dc400ac3e6a0a05b18b888 (diff) | |
download | pfsense-packages-f3e95b3ea13324448032a65ad9c739f56101397c.tar.gz pfsense-packages-f3e95b3ea13324448032a65ad9c739f56101397c.tar.bz2 pfsense-packages-f3e95b3ea13324448032a65ad9c739f56101397c.zip |
haproxy-devel, fix removing items from lists without first needing to edit them.
Diffstat (limited to 'config')
-rw-r--r-- | config/haproxy-devel/haproxy_htmllist.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/haproxy-devel/haproxy_htmllist.inc b/config/haproxy-devel/haproxy_htmllist.inc index 404e9fab..193728f5 100644 --- a/config/haproxy-devel/haproxy_htmllist.inc +++ b/config/haproxy-devel/haproxy_htmllist.inc @@ -327,9 +327,12 @@ function haproxy_htmllist_js(){ var view = document.getElementById("tr_view_" + rowId); var viewdetail = document.getElementById("tr_viewdetail_" + rowId); var edit = document.getElementById("tr_edit_" + rowId); - view.parentNode.removeChild(view); - viewdetail.parentNode.removeChild(viewdetail); - edit.parentNode.removeChild(edit); + if (view) + view.parentNode.removeChild(view); + if (viewdetail) + viewdetail.parentNode.removeChild(viewdetail); + if (edit) + edit.parentNode.removeChild(edit); } function removeRow(el) { var cel; |