<p>Eliminate interpolation, move to page-specific script file, and<br>
wrap in a single $(document).ready().</p>
<p>This includes the change from <a href="https://github.com/openstreetmap/openstreetmap-website/issues/107" class="issue-link" title="Use the jQuery data() function to access HTML 5 data attributes">#107</a> as well.</p>
<hr>
<h4>You can merge this Pull Request by running:</h4>
<pre> git pull https://github.com/jfirebaugh/openstreetmap-website index_js</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/108'>https://github.com/openstreetmap/openstreetmap-website/pull/108</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Use the jQuery data() function to access HTML 5 data attributes</li>
<li>Eliminate interpolation in index JS</li>
<li>Move index JS to page-specific script file</li>
<li>Wrap in a single $(document).ready()</li>
</ul>
<h4>File Changes</h4>
<ul>
<li><strong>A</strong> app/assets/javascripts/index.js (129)</li>
<li><strong>M</strong> app/views/layouts/_head.html.erb (2)</li>
<li><strong>M</strong> app/views/layouts/site.html.erb (5)</li>
<li><strong>M</strong> app/views/site/_potlatch.html.erb (7)</li>
<li><strong>M</strong> app/views/site/_potlatch2.html.erb (7)</li>
<li><strong>M</strong> app/views/site/index.html.erb (158)</li>
<li><strong>M</strong> config/application.rb (3)</li>
<li><strong>M</strong> config/i18n-js.yml (1)</li>
</ul>
<h4>Patch Links</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/108.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/108.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/108.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/108.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/108'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_ke-2aCEQDlQWDTgmgKWt8h.gif' height='1' width='1'>