<p>This takes advantage of Rails UJS adapter to make the AJAX<br>
requests automatically and avoids the need to interpolate<br>
a <code>url_for</code> into embedded JS.</p>

<p>Tested both links manually as well as the /export route.</p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/jfirebaugh/openstreetmap-website unobtrusive_links</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/72'>https://github.com/openstreetmap/openstreetmap-website/pull/72</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Use unobtrusive JS for "Browse Map Data" link</li>
  <li>Use unobtrusive JS for "Export" link</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> app/views/layouts/site.html.erb (2)</li>
  <li><strong>M</strong> app/views/site/index.html.erb (13)</li>
</ul>

<h4>Patch Links</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/72.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/72.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/72.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/72.diff</a></li>
</ul>


            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/72'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpmLWAu4oQih75mggZl1E8_nke9dBij3FpjgnFbzsLDJ6.gif' height='1' width='1'>