Yet another piece of #250047: Rework the SimpleTest results interface and clean-up of backend code that can be looked at separately. The patch is taken straight from that issue.

This patch makes it possible to attach a javascript callback to be called when the page HTML is regenerated.

CommentFileSizeAuthor
batch-attach-js.patch3.08 KBfloretan

Comments

yched’s picture

Nitpick :

     // Success: redirect to the summary.
     var updateCallback = function (progress, status, pb) {
+      for (behavior in Drupal.batchUpdate) {
+        Drupal.batchUpdate[behavior](progress, status, pb);
+      }
       if (progress == 100) {

The comment is now inaccurate.

+var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {}, 'batchUpdate': {} };

seems unrelated

yched’s picture

Doh, scratch my second point, of course...

Anonymous’s picture

Status: Needs review » Needs work

The last submitted patch failed testing.

Jooblay.net’s picture

Issue summary: View changes

What is the status of this ticket:) Can we close this...

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.