diff options
Diffstat (limited to 'src/usr/local/www/js/pfSenseHelpers.js')
-rw-r--r-- | src/usr/local/www/js/pfSenseHelpers.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js index a675cc6..0283b11 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -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 |