diff options
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); } } |