[openstreetmap-website] Use 'data-remote' attribute for AJAX links (#72)
John Firebaugh
notifications at github.com
Sat Aug 25 19:53:14 BST 2012
This takes advantage of Rails UJS adapter to make the AJAX
requests automatically and avoids the need to interpolate
a `url_for` into embedded JS.
Tested both links manually as well as the /export route.
You can merge this Pull Request by running:
git pull https://github.com/jfirebaugh/openstreetmap-website unobtrusive_links
Or you can view, comment on it, or merge it online at:
https://github.com/openstreetmap/openstreetmap-website/pull/72
-- Commit Summary --
* Use unobtrusive JS for "Browse Map Data" link
* Use unobtrusive JS for "Export" link
-- File Changes --
M app/views/layouts/site.html.erb (2)
M app/views/site/index.html.erb (13)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/72.patch
https://github.com/openstreetmap/openstreetmap-website/pull/72.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/72
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20120825/1d8f58aa/attachment.html>
More information about the rails-dev
mailing list