diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-05-10 23:42:28 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-05-10 23:44:44 -0400 |
commit | 5925b4191757d0fd1dd45f97a8e725038ac7090a (patch) | |
tree | ff83ee730b235899a394e96b4133a9c2b1350b0e /src/usr/local/www | |
parent | 16203db3766d694c22a49ff25353e1109bf64c6d (diff) | |
download | pfsense-5925b4191757d0fd1dd45f97a8e725038ac7090a.zip pfsense-5925b4191757d0fd1dd45f97a8e725038ac7090a.tar.gz |
Spaces->tabs
(cherry picked from commit e1caefc74fba6cbbb680288c1f8d930e4f0ad474)
Diffstat (limited to 'src/usr/local/www')
-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 |