diff options
author | Alex Pott <alex.a.pott@googlemail.com> | 2020-01-28 11:36:14 +0000 |
---|---|---|
committer | Alex Pott <alex.a.pott@googlemail.com> | 2020-01-28 11:36:14 +0000 |
commit | 2dadb738bfd48510db2174323528fe769731c05a (patch) | |
tree | f6319d9bfa9af8b41dc0ca7c187bef1eaf17aee4 /core/misc/batch.js | |
parent | 09b78ffb1bc1bb62d21fb3abb85e1349a674597a (diff) | |
download | drupal-2dadb738bfd48510db2174323528fe769731c05a.tar.gz drupal-2dadb738bfd48510db2174323528fe769731c05a.zip |
Issue #3101543 by lauriii, bnjmnm, ravi.shankar: Update core JavaScript dependencies listed in package.json
Diffstat (limited to 'core/misc/batch.js')
-rw-r--r-- | core/misc/batch.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/misc/batch.js b/core/misc/batch.js index 83ecf5a74835..402b2ea9add9 100644 --- a/core/misc/batch.js +++ b/core/misc/batch.js @@ -10,12 +10,12 @@ attach: function attach(context, settings) { var batch = settings.batch; var $progress = $('[data-drupal-progress]').once('batch'); - var progressBar = void 0; + var progressBar; function updateCallback(progress, status, pb) { if (progress === '100') { pb.stopMonitoring(); - window.location = batch.uri + '&op=finished'; + window.location = "".concat(batch.uri, "&op=finished"); } } @@ -27,10 +27,8 @@ if ($progress.length) { progressBar = new Drupal.ProgressBar('updateprogress', updateCallback, 'POST', errorCallback); progressBar.setProgress(-1, batch.initMessage); - progressBar.startMonitoring(batch.uri + '&op=do', 10); - + progressBar.startMonitoring("".concat(batch.uri, "&op=do"), 10); $progress.empty(); - $progress.append(progressBar.element); } } |