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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Status: Postponed » Active
vijaycs85’s picture

Status: Active » Needs review
FileSize
1009 bytes

Initial 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.

Status: Needs review » Needs work

The last submitted patch, 1988716-ajax-delete-2.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review

#2: 1988716-ajax-delete-2.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1988716-ajax-delete-2.patch, failed testing.

Gábor Hojtsy’s picture

As said in #1842036: [META] Convert all confirm forms to use modal dialog, we should use #attached on the form to add the JS IMHO.

Gábor Hojtsy’s picture

Status: Needs work » Needs review

#2: 1988716-ajax-delete-2.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1988716-ajax-delete-2.patch, failed testing.

vijaycs85’s picture

Status: Needs work » Needs review
FileSize
785 bytes
1.01 KB

Thanks @Gábor Hojtsy. Updated as #attached.

Gábor Hojtsy’s picture

I 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?!

Gábor Hojtsy’s picture

Status: Needs review » Postponed
Issue tags: +D8MI, +language-config

Same 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.

Gábor Hojtsy’s picture

This does not even seem to happen in core at this point. Keeping it postponed for now.

Gábor Hojtsy’s picture

Issue summary: View changes
Status: Postponed » Closed (duplicate)

Now 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.