diff options
Diffstat (limited to 'core/misc/batch.es6.js')
-rw-r--r-- | core/misc/batch.es6.js | 11 |
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); |