summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-05-11 13:44:45 +0930
committerChris Buechler <cmb@pfsense.org>2016-05-11 01:56:22 -0500
commitf212adc8f46064152cb473986c975c1b4255fbc1 (patch)
tree5d8e089ea5907e0398c46f2c37fc980b69234530 /src
parent60ec2d7a6f9bb357caca6cf33cbf0c8a84828bda (diff)
downloadpfsense-f212adc8f46064152cb473986c975c1b4255fbc1.zip
pfsense-f212adc8f46064152cb473986c975c1b4255fbc1.tar.gz
hideMask only modify input-group on first parent
Otherwise when unhiding (e.g. for Network type alias), input-group gets added to every div up the DM hierarchy and the layout gets messed up.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/js/pfSenseHelpers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js
index 0283b11..dadcf9f 100644
--- a/src/usr/local/www/js/pfSenseHelpers.js
+++ b/src/usr/local/www/js/pfSenseHelpers.js
@@ -143,11 +143,11 @@ function hideMask(name, hide) {
if(hide) {
$('[id^=' + name + ']').hide();
$('[id^=' + name + ']').prev('span').hide();
- $('[id^=' + name + ']').parents('div').removeClass('input-group');
+ $('[id^=' + name + ']').parent('div').removeClass('input-group');
} else {
$('[id^=' + name + ']').show();
$('[id^=' + name + ']').prev('span').show();
- $('[id^=' + name + ']').parents('div').addClass('input-group');
+ $('[id^=' + name + ']').parent('div').addClass('input-group');
}
}
OpenPOWER on IntegriCloud