diff options
author | Phil Davis <phil.davis@inf.org> | 2016-08-16 14:15:56 +0930 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-08-16 09:21:54 -0400 |
commit | 9488f42b8190c92b6328697cbe84faad71647675 (patch) | |
tree | d67ed8fa47eb873cf9c9adcb766c4a8a81013afe /src/usr/local/www/js | |
parent | c9cd556bdc4ef615778aa0c28c1030db23abf107 (diff) | |
download | pfsense-9488f42b8190c92b6328697cbe84faad71647675.zip pfsense-9488f42b8190c92b6328697cbe84faad71647675.tar.gz |
Code style and comments
No functional change - just making style consistent
(cherry picked from commit 9d3e8723171c727cf43338bd8e95ab2bb7e6a66c)
Diffstat (limited to 'src/usr/local/www/js')
-rw-r--r-- | src/usr/local/www/js/pfSense.js | 6 | ||||
-rw-r--r-- | src/usr/local/www/js/pfSenseHelpers.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/js/pfSense.js b/src/usr/local/www/js/pfSense.js index 2f6aad0..2f9811e 100644 --- a/src/usr/local/www/js/pfSense.js +++ b/src/usr/local/www/js/pfSense.js @@ -175,10 +175,10 @@ $(function() { // Use element title in the confirmation message, or if not available // the element value $('.btn-danger, .fa-trash').on('click', function(e){ - if(!($(this).hasClass('no-confirm'))) { + if (!($(this).hasClass('no-confirm'))) { var msg = $.trim(this.textContent); - if(!msg) + if (!msg) var msg = $.trim(this.value).toLowerCase(); var q = 'Are you sure you wish to '+ msg +'?'; @@ -233,7 +233,7 @@ $(function() { originalLeave.call(this, obj); - if(self.$tip && self.$tip.length) { + if (self.$tip && self.$tip.length) { container = self.$tip; timeout = self.timeout; container.one('mouseenter', function(){ diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js index 9ddabcf..56d659e 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -141,7 +141,7 @@ function hideLabel(text, hide) { // Hides the '/' and the subnet mask of an Ip_Address/subnet_mask group function hideMask(name, hide) { - if(hide) { + if (hide) { $('[id^=' + name + ']').hide(); $('[id^=' + name + ']').prev('span').hide(); $('[id^=' + name + ']').parent('div').removeClass('input-group'); |