summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/batch.es6.js
diff options
context:
space:
mode:
authorLauri Eskola <lauriii@1078742.no-reply.drupal.org>2018-08-09 18:49:18 +0300
committerLauri Eskola <lauriii@1078742.no-reply.drupal.org>2018-08-09 18:49:18 +0300
commite742590eedd0f8bfe0f4f21710df3ddfe0524521 (patch)
tree6ca0c5c851f63186f0cb1ca52a28ee899dd3aa14 /core/misc/batch.es6.js
parentc6e6709878839e0639d73d7c1e4420a8008e8a33 (diff)
downloaddrupal-e742590eedd0f8bfe0f4f21710df3ddfe0524521.tar.gz
drupal-e742590eedd0f8bfe0f4f21710df3ddfe0524521.zip
Issue #2981652 by ApacheEx, corbacho, drpal, dawehner, xjm, alexpott, lauriii: Format core JavaScript using recently add Prettier
Diffstat (limited to 'core/misc/batch.es6.js')
-rw-r--r--core/misc/batch.es6.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/misc/batch.es6.js b/core/misc/batch.es6.js
index 995d1c51d124..9c8caac76324 100644
--- a/core/misc/batch.es6.js
+++ b/core/misc/batch.es6.js
@@ -3,7 +3,7 @@
* Drupal's batch API.
*/
-(function ($, Drupal) {
+(function($, Drupal) {
/**
* Attaches the batch behavior to progress bars.
*
@@ -29,7 +29,12 @@
}
if ($progress.length) {
- progressBar = new Drupal.ProgressBar('updateprogress', updateCallback, 'POST', errorCallback);
+ progressBar = new Drupal.ProgressBar(
+ 'updateprogress',
+ updateCallback,
+ 'POST',
+ errorCallback,
+ );
progressBar.setProgress(-1, batch.initMessage);
progressBar.startMonitoring(`${batch.uri}&op=do`, 10);
// Remove HTML from no-js progress bar.
@@ -39,4 +44,4 @@
}
},
};
-}(jQuery, Drupal));
+})(jQuery, Drupal);