mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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.
This commit is contained in:
parent
60ec2d7a6f
commit
f212adc8f4
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user