From b71afe21157d55a270b84e22f025aa6455d286ce Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 11 Feb 2010 12:53:42 +1300 Subject: disable the row addition if no acl options are available --- config/haproxy-dev/haproxy_listeners_edit.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/haproxy-dev') diff --git a/config/haproxy-dev/haproxy_listeners_edit.php b/config/haproxy-dev/haproxy_listeners_edit.php index 6f6c60a4..326a5a20 100755 --- a/config/haproxy-dev/haproxy_listeners_edit.php +++ b/config/haproxy-dev/haproxy_listeners_edit.php @@ -289,6 +289,8 @@ include("head.inc"); seltext = ""; else seltext = ""; + if (seltext == '') + return; tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0); tr = d.createElement("tr"); -- cgit v1.2.3