aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-11 12:24:32 +1300
committerthompsa <andy@fud.org.nz>2010-02-11 12:24:32 +1300
commit0066c76109408369c66500600d6c3ddc5ef3619e (patch)
treef472322cc7b722922ca0491cfe0ed6b1dda66b33 /config/haproxy-dev
parentadd2de003924d009fd400d583c975fa85c342215 (diff)
downloadpfsense-packages-0066c76109408369c66500600d6c3ddc5ef3619e.tar.gz
pfsense-packages-0066c76109408369c66500600d6c3ddc5ef3619e.tar.bz2
pfsense-packages-0066c76109408369c66500600d6c3ddc5ef3619e.zip
Use fade effects to alert the user to ACL changes
Diffstat (limited to 'config/haproxy-dev')
-rwxr-xr-xconfig/haproxy-dev/haproxy_listeners_edit.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/config/haproxy-dev/haproxy_listeners_edit.php b/config/haproxy-dev/haproxy_listeners_edit.php
index f72d1ee2..b9d91191 100755
--- a/config/haproxy-dev/haproxy_listeners_edit.php
+++ b/config/haproxy-dev/haproxy_listeners_edit.php
@@ -251,6 +251,8 @@ include("head.inc");
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
+<script type="text/javascript" src="/javascript/scriptaculous/prototype.js"></script>
+<script type="text/javascript" src="/javascript/scriptaculous/scriptaculous.js"></script>
<script type="text/javascript">
// Global Variables
var rowname = new Array(99);
@@ -410,7 +412,7 @@ include("head.inc");
}
}
function type_change() {
- var type, d, i, j, el;
+ var type, d, i, j, el, row;
var count = <?=count($a_acltypes);?>;
var acl = [ <?php foreach ($a_acltypes as $expr) echo "'".$expr['name']."'," ?> ];
var mode = [ <?php foreach ($a_acltypes as $expr) echo "'".$expr['mode']."'," ?> ];
@@ -419,14 +421,15 @@ include("head.inc");
type = d.getElementById("type").value;
for (i = 0; i < 99; i++) {
el = d.getElementById("acl_expression" + i);
+ row = d.getElementById("aclrow" + i);
if (!el)
continue;
- for (j = 0; j < 99; j++) {
+ for (j = 0; j < count; j++) {
if (acl[j] == el.value) {
if (mode[j] != '' && mode[j] != type) {
- d.getElementById('aclrow' + i).style.display='none';
+ Effect.Fade(row,{ duration: 1.0 });
} else {
- d.getElementById('aclrow' + i).style.display='';
+ Effect.Appear(row,{ duration: 1.0 });
}
}
}