diff --git a/core/misc/batch.js b/core/misc/batch.js index 62ff1ea7518fbf2b4cd2c2bce0bb13b1bc4ddafe..ee6cf68705df9f68ce542ddd1f067b2d9c2ba015 100644 --- a/core/misc/batch.js +++ b/core/misc/batch.js @@ -11,7 +11,7 @@ Drupal.behaviors.batch = { attach: function (context, settings) { var batch = settings.batch; - var $progress = $('#progress').once('batch'); + var $progress = $('[data-drupal-progress]').once('batch'); var progressBar; // Success: redirect to the summary. diff --git a/core/modules/system/templates/progress-bar.html.twig b/core/modules/system/templates/progress-bar.html.twig index 0d11991d3472bae36f69b9c4605ad0669f03f4c6..885a80fa2cf9a9b0c554f9c41953d3214c9e20fd 100644 --- a/core/modules/system/templates/progress-bar.html.twig +++ b/core/modules/system/templates/progress-bar.html.twig @@ -13,7 +13,7 @@ * @ingroup themeable */ #} -<div id="progress" class="progress"> +<div class="progress" data-drupal-progress> {% if label %} <div class="progress__label">{{ label }}</div> {% endif %}