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.
This should involve adding the JS ajax lib and data on the link, see #1842036: [META] Convert all confirm forms to use modal dialog for other conversions. Postponed on #1985880: Convert to routing system.
Comment | File | Size | Author |
---|---|---|---|
#9 | 1988716-ajax-delete-9.patch | 1.01 KB | vijaycs85 |
#9 | 1988716-diff-2-9.txt | 785 bytes | vijaycs85 |
#2 | 1988716-ajax-delete-2.patch | 1009 bytes | vijaycs85 |
Comments
Comment #1
Gábor Hojtsy#1985880: Convert to routing system now committed.
Comment #2
vijaycs85Initial patch... However it is failing with 415 (Unsupported media type). Found related issue #1983710: HTTP: Use 406 (Not acceptable) over 415 (Unsupported media type) and applying patch in it made it 406 (Not acceptable).
Lets check with testbot.
Comment #4
vijaycs85#2: 1988716-ajax-delete-2.patch queued for re-testing.
Comment #6
Gábor HojtsyAs said in #1842036: [META] Convert all confirm forms to use modal dialog, we should use #attached on the form to add the JS IMHO.
Comment #7
Gábor Hojtsy#2: 1988716-ajax-delete-2.patch queued for re-testing.
Comment #9
vijaycs85Thanks @Gábor Hojtsy. Updated as #attached.
Comment #10
Gábor HojtsyI tested this patch quickly on simplytest.me. What happened for me there was that the circle loading sign showed up proper on the delete link but then nothing happened. Seeing "admin/config/system/site-information/translate/delete/af 415 (Unsupported Media Type)" in JS logs, so seems like same issue. How does any of this confirm form stuff work in core now?!
Comment #11
Gábor HojtsySame problem applies to #1842036-48: [META] Convert all confirm forms to use modal dialog, so postponing on solving that in core, and then coming back here.
Comment #12
Gábor HojtsyThis does not even seem to happen in core at this point. Keeping it postponed for now.
Comment #13
Gábor HojtsyNow that the module is in core, marking this as duplicate of #1842036: [META] Convert all confirm forms to use modal dialog. Now that should cover this one.