aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/www/haproxy_listeners_edit.php
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2015-12-12 21:42:34 +0100
committerPiBa-NL <pba_2k3@yahoo.com>2015-12-12 21:42:34 +0100
commit1980fb6674d51d73f5ed6aa6e48dc2133d373a36 (patch)
tree131385b855237777e9d403ad34686433bac9a371 /config/haproxy-devel/www/haproxy_listeners_edit.php
parentdcc68137b44ee8f82f4e71f6650fc1cec5fd8c6b (diff)
downloadpfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.tar.gz
pfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.tar.bz2
pfsense-packages-1980fb6674d51d73f5ed6aa6e48dc2133d373a36.zip
haproxy-devel, small fixes
Diffstat (limited to 'config/haproxy-devel/www/haproxy_listeners_edit.php')
-rw-r--r--config/haproxy-devel/www/haproxy_listeners_edit.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/config/haproxy-devel/www/haproxy_listeners_edit.php b/config/haproxy-devel/www/haproxy_listeners_edit.php
index 8e6c1c3d..f26341b2 100644
--- a/config/haproxy-devel/www/haproxy_listeners_edit.php
+++ b/config/haproxy-devel/www/haproxy_listeners_edit.php
@@ -532,8 +532,9 @@ $primaryfrontends = get_haproxy_frontends($excludefrontend);
d = document;
for (i = 0; i < 99; i++) {
el = d.getElementById("table_acls" + "expression" + i);
+ row_v = d.getElementById("tr_view_" + i);
row_e = d.getElementById("tr_edit_" + i);
- row_v = d.getElementById("tr_viewdetail_" + i);
+ row_vd = d.getElementById("tr_viewdetail_" + i);
if (!el || !row_e)
continue;
for (j = 0; j < count; j++) {
@@ -543,10 +544,17 @@ $primaryfrontends = get_haproxy_frontends($excludefrontend);
if (row_v) {
Effect.Fade(row_v,{ duration: 1.0 });
}
+ if (row_vd) {
+ Effect.Fade(row_vd,{ duration: 1.0 });
+ }
} else {
- Effect.Appear(row_e,{ duration: 1.0 });
- if (row_v) {
- Effect.Appear(row_v,{ duration: 1.0 });
+ if (!row_v || (row_v && row_v.style.display == "none")) {
+ // only make the edit row appear if the view row is not still on the screen.
+ // (when switching frontend types)
+ Effect.Appear(row_e,{ duration: 1.0 });
+ }
+ if (row_vd) {
+ Effect.Appear(row_vd,{ duration: 1.0 });
}
}
}