-
Notifications
You must be signed in to change notification settings - Fork 505
Description
First of all, thanks for providing us with jquery_ujs!
I'd like it if jq_ujs provided an easy way to override how it gets the href from an element. Just like we can override the ajax call. I've seen issue #4, but my suggestion is coming from a different place.
10s background: I'm currently working with jQuery Mobile and jquery_ujs. They recently started messing around with the href on touch devices, in order to keep iOS from displaying the address bar. They tuck it away in a data-href attribute.
So if jq_ujs could let me override the way it gets an element's href, I could deal with this situation gracefully. I'm sure other frameworks do (or will) use the same kind of trick to keep the address bar from appearing. So I think it makes sense to include this feature in jquery_ujs. What do you think?
Let me send you a pull request, for my implementation...