summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorjskyboo <jack@ron.hog.mooo.info>2017-01-26 08:42:03 -0800
committerjskyboo <jack@ron.hog.mooo.info>2017-01-26 08:42:03 -0800
commitc18d0d12b3e683f07b4bac933240332cd4d95829 (patch)
tree63957711bae471d8144394504da48a91623343db /src/usr/local/www
parent950342400bdc75b35c01442c400bd53a18015818 (diff)
downloadpfsense-c18d0d12b3e683f07b4bac933240332cd4d95829.zip
pfsense-c18d0d12b3e683f07b4bac933240332cd4d95829.tar.gz
Fix indentation
Diffstat (limited to 'src/usr/local/www')
-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 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,
OpenPOWER on IntegriCloud