Mercurial > hg > isophonics-drupal-site
diff core/misc/batch.es6.js @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/misc/batch.es6.js Tue Jul 10 15:07:59 2018 +0100 +++ b/core/misc/batch.es6.js Thu Feb 28 13:21:36 2019 +0000 @@ -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);