Skip to content

Up-to-date async-confirm patches#283

Closed
jpzwarte wants to merge 2 commits intorails:masterfrom
jpzwarte:master
Closed

Up-to-date async-confirm patches#283
jpzwarte wants to merge 2 commits intorails:masterfrom
jpzwarte:master

Conversation

@jpzwarte
Copy link

I've redone the async-confirm branch changes on top of master. In the last 4 projects we've done, we've used a non-native confirm dialog every single time. Any change on whether or not to merge this with master? Tests still all pass.

Here's an example using async confirm: https://gist.github.com/3878172

@jpzwarte
Copy link
Author

I've now run into the situation where event.preventDefault() on a form fails to work. Took me a while to figure out this code was responsible. So i've changed my mind that this is a good idea.

@seanlinsley
Copy link

@jpzwarte, could you go into greater detail over why preventDefault wasn't working? Could you not use stopPropagation instead?

I'd love to have this functionality. For now I'm disabling UJS for a specific subset of links and providing my own handler: https://gist.github.com/4485846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants