* Drupal's batch API.
*/
-(function ($, Drupal) {
+(function($, Drupal) {
/**
* Attaches the batch behavior to progress bars.
*
}
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.
}
},
};
-}(jQuery, Drupal));
+})(jQuery, Drupal);