aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-04-08 08:44:49 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-04-08 08:44:49 -0300
commit97641e971be608ffbd9bd92dd85318914ea35e32 (patch)
tree245cbce3e75d639514438e7775807a5f7af56c77
parentb98fe3e8ff1560b664dc0f18c7b344ad5b1aac2c (diff)
parent1475d404bace06ae776f06834123f67a980d2a0f (diff)
downloadpfsense-packages-97641e971be608ffbd9bd92dd85318914ea35e32.tar.gz
pfsense-packages-97641e971be608ffbd9bd92dd85318914ea35e32.tar.bz2
pfsense-packages-97641e971be608ffbd9bd92dd85318914ea35e32.zip
Merge pull request #639 from PiBa-NL/hap_consistent_type
-rw-r--r--config/haproxy-devel/haproxy_listeners_edit.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/config/haproxy-devel/haproxy_listeners_edit.php b/config/haproxy-devel/haproxy_listeners_edit.php
index 5bc039b7..884bb364 100644
--- a/config/haproxy-devel/haproxy_listeners_edit.php
+++ b/config/haproxy-devel/haproxy_listeners_edit.php
@@ -261,7 +261,14 @@ $interfaces = haproxy_get_bindable_interfaces();
function htmllist_get_select_options(tableId) {
var seltext;
seltext = "";
- var type = d.getElementById("type").value;
+ var type;
+ var secondary = d.getElementById("secondary");
+ var primary_frontend = d.getElementById("primary_frontend");
+ if ((secondary !== null) && (secondary.checked))
+ type = primaryfrontends[primary_frontend.value]['ref']['type'];
+ else
+ type = d.getElementById("type").value;
+
if (tableId == 'tableA_acltable'){
if (type == 'health')
seltext = "<?php echo haproxy_js_acl_select('health');?>";
@@ -297,10 +304,10 @@ $interfaces = haproxy_get_bindable_interfaces();
function updatevisibility() {
d = document;
ssloffload = d.getElementById("ssloffload");
- type = d.getElementById("type");
- secondary = d.getElementById("secondary");
- primary_frontend = d.getElementById("primary_frontend");
+ var type;
+ var secondary = d.getElementById("secondary");
+ var primary_frontend = d.getElementById("primary_frontend");
if ((secondary !== null) && (secondary.checked))
type = primaryfrontends[primary_frontend.value]['ref']['type'];
else