summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjskyboo <jack@ron.hog.mooo.info>2017-01-26 08:42:03 -0800
committerRenato Botelho <renato@netgate.com>2017-01-27 11:24:17 -0200
commit19c25a5377dbdb6a1ea35c479038571b669e1df3 (patch)
treee3ba1f8945550f98bd9b40ac74815edd935f393b /src
parentd5f0b97e76086936a56b48a5584e22315fd63fdb (diff)
downloadpfsense-19c25a5377dbdb6a1ea35c479038571b669e1df3.zip
pfsense-19c25a5377dbdb6a1ea35c479038571b669e1df3.tar.gz
Fix indentation
(cherry picked from commit c18d0d12b3e683f07b4bac933240332cd4d95829)
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/js/pfSenseHelpers.js20
-rw-r--r--src/usr/local/www/services_ntpd.php6
2 files changed, 13 insertions, 13 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js
index 80d3361..d98a50a 100644
--- a/src/usr/local/www/js/pfSenseHelpers.js
+++ b/src/usr/local/www/js/pfSenseHelpers.js
@@ -314,16 +314,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 11c2391..991f9e0 100644
--- a/src/usr/local/www/services_ntpd.php
+++ b/src/usr/local/www/services_ntpd.php
@@ -252,9 +252,9 @@ $timeservers = explode(' ', $config['system']['timeservers']);
$maxrows = max(count($timeservers), 1);
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,
OpenPOWER on IntegriCloud