I detest confirmation forms, but in this case it was the quick and easy way to add this functionality without risking security and having to handle the JS replaceWith structure.

I have finally come full circle and what to remove the confirmation form and just use AJAX. This patch does so using security tokens, works without JS and works with multiple Activity2 Views on a page with Delete links.

Haven't decided if we need a .js file or if inline like this is ok.

Comments

Scott Reynolds’s picture

StatusFileSize
new5.82 KB

Lets not use the keyword 'delete'. this just changes that to deleteSettings.

Scott Reynolds’s picture

doesn't work cleanly with the Ajax pager setting :-(. Have to figure out a Views2 and a separate Views3 method for setting the pager.

pribeh’s picture

Bump. Plenty of users have reported hating delete confirmation forms on various things including activity items - on my sites.

sirkitree’s picture

Category: task » feature
Status: Needs review » Needs work

moving to needs work until we figure out the views stuff, since views is our main form of display.

madhusudan’s picture

I tried the patch. it patched correctly.. also deletes activity.. after deleting the page doesn't get refreshed!...

an ajaxified delete confirm will be fine..

looks like I need to roll it back..

_shy’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

D6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.