From 67ec528e137efb562c6728c1b6c4471aadbfc32e Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 11 Feb 2010 13:11:57 +1300 Subject: Alert the user rather than just having a dead button --- config/haproxy-dev/haproxy_listeners_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/haproxy-dev/haproxy_listeners_edit.php b/config/haproxy-dev/haproxy_listeners_edit.php index 6f18b1bd..89ac8195 100755 --- a/config/haproxy-dev/haproxy_listeners_edit.php +++ b/config/haproxy-dev/haproxy_listeners_edit.php @@ -289,8 +289,10 @@ include("head.inc"); seltext = ""; else seltext = ""; - if (seltext == '') + if (seltext == '') { + alert("No ACL types available in current listener mode"); return; + } tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0); tr = d.createElement("tr"); -- cgit v1.2.3