Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With the fix made in issue #2913831: Confirmation alert we now have a working confirmation box again. However if you have enabled backwards navigation you'll also receive the warning when pressing the back button, which considering the nature of the warning leads to confusion.
Comment | File | Size | Author |
---|---|---|---|
#4 | quiz-no_confirmation_on_back_button-2953548-4.patch | 742 bytes | Da_Cloud |
#2 | quiz-no_confirmation_on_back_button-2953548-2.patch | 722 bytes | Da_Cloud |
Comments
Comment #2
Da_Cloud CreditAttribution: Da_Cloud at INDICIA commentedMy JavaScript skills aren't that great, but I've created a working fix in the patch below.
Comment #4
Da_Cloud CreditAttribution: Da_Cloud at INDICIA commentedMade the click function more specific so that it only triggers on a form-action button press.
Comment #5
Da_Cloud CreditAttribution: Da_Cloud at INDICIA commentedComment #8
djdevinThanks, fixed.
I made a change to target it inclusively rather than exclusively and used the jQuery event instead of checking the ID.