mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Added hideMask() function
This commit is contained in:
parent
9815f8065b
commit
25a96ffb1b
@ -138,6 +138,19 @@ function hideLabel(text, hide) {
|
||||
element.parent('div').removeClass('hidden');
|
||||
}
|
||||
|
||||
// Hides the '/' and the subnet mask of an Ip_Address/subnet_mask group
|
||||
function hideMask(name, hide) {
|
||||
if(hide) {
|
||||
$('[id^=' + name + ']').hide();
|
||||
$('[id^=' + name + ']').prev('span').hide();
|
||||
$('[id^=' + name + ']').parents('div').removeClass('input-group');
|
||||
} else {
|
||||
$('[id^=' + name + ']').show();
|
||||
$('[id^=' + name + ']').prev('span').show();
|
||||
$('[id^=' + name + ']').parents('div').addClass('input-group');
|
||||
}
|
||||
}
|
||||
|
||||
// Toggle table row checkboxes and background colors on the pages that use sortable tables:
|
||||
// /usr/local/www/firewall_nat.php
|
||||
// /usr/local/www/firewall_nat_1to1.php
|
||||
|
||||
Loading…
Reference in New Issue
Block a user