aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-11 13:11:57 +1300
committerthompsa <andy@fud.org.nz>2010-02-11 13:11:57 +1300
commit67ec528e137efb562c6728c1b6c4471aadbfc32e (patch)
tree2b75cd302dc2d40f87bc50b2e17f8d880c5f4e9f
parent0f03c7e2536107f9d37971381d20aa66abe001a5 (diff)
downloadpfsense-packages-67ec528e137efb562c6728c1b6c4471aadbfc32e.tar.gz
pfsense-packages-67ec528e137efb562c6728c1b6c4471aadbfc32e.tar.bz2
pfsense-packages-67ec528e137efb562c6728c1b6c4471aadbfc32e.zip
Alert the user rather than just having a dead button
-rwxr-xr-xconfig/haproxy-dev/haproxy_listeners_edit.php4
1 files changed, 3 insertions, 1 deletions
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 = "<?php echo haproxy_acl_select('https');?>";
else
seltext = "<?php echo haproxy_acl_select('http');?>";
- 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");