From c18d0d12b3e683f07b4bac933240332cd4d95829 Mon Sep 17 00:00:00 2001 From: jskyboo Date: Thu, 26 Jan 2017 08:42:03 -0800 Subject: Fix indentation --- src/usr/local/www/js/pfSenseHelpers.js | 20 ++++++++++---------- src/usr/local/www/services_ntpd.php | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js index f8aafe8..49c9415 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -290,16 +290,16 @@ function checkLastRow() { function add_row() { // Find the last repeatable group - var lastRepeatableGroup = $('.repeatable:last'); - - // If the number of repeats exceeds the maximum, do not add another clone - if ($('.repeatable').length >= lastRepeatableGroup.attr('max_repeats')) { - // Alert user if alert message is specified - if (typeof lastRepeatableGroup.attr('max_repeats_alert') !== 'undefined') { - alert(lastRepeatableGroup.attr('max_repeats_alert')); - } - return; - } + var lastRepeatableGroup = $('.repeatable:last'); + + // If the number of repeats exceeds the maximum, do not add another clone + if ($('.repeatable').length >= lastRepeatableGroup.attr('max_repeats')) { + // Alert user if alert message is specified + if (typeof lastRepeatableGroup.attr('max_repeats_alert') !== 'undefined') { + alert(lastRepeatableGroup.attr('max_repeats_alert')); + } + return; + } // Clone it var newGroup = lastRepeatableGroup.clone(); diff --git a/src/usr/local/www/services_ntpd.php b/src/usr/local/www/services_ntpd.php index 842d11b..9c40909 100644 --- a/src/usr/local/www/services_ntpd.php +++ b/src/usr/local/www/services_ntpd.php @@ -227,9 +227,9 @@ $maxrows = max(count($timeservers), 1); $auto_pool_suffix = "pool.ntp.org"; for ($counter=0; $counter < $maxrows; $counter++) { $group = new Form_Group($counter == 0 ? 'Time Servers':''); - $group->addClass('repeatable'); - $group->setAttribute('max_repeats', NUMTIMESERVERS); - $group->setAttribute('max_repeats_alert', sprintf(gettext('%d is the maximum number of configured servers.'), NUMTIMESERVERS)); + $group->addClass('repeatable'); + $group->setAttribute('max_repeats', NUMTIMESERVERS); + $group->setAttribute('max_repeats_alert', sprintf(gettext('%d is the maximum number of configured servers.'), NUMTIMESERVERS)); $group->add(new Form_Input( 'server' . $counter, -- cgit v1.1