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.
I have to admit I'm guilty of stealing the JS/throbber for replacing submit/save buttons with a throbber/saving message for half my projects (to prevent duplicate form submissions). I needed it for a D7 project today, so I reformatted the jQuery for Drupal 7 standards (had to add in a couple divs, for the comment form, rename the selector for the user-register-form, and reformat the code to follow D7 JS coding styles.
I will attach the patch against the 7.x-2.x branch in the comment below.
Comment | File | Size | Author |
---|---|---|---|
#1 | js-prevent-form-duplicates-1206338-1.patch | 2.18 KB | geerlingguy |
Comments
Comment #1
geerlingguy CreditAttribution: geerlingguy commentedPatch attached.
Comment #2
geerlingguy CreditAttribution: geerlingguy commented