<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,8 +29,10 @@ jQuery(document).ready(function($) {
 
   //animate anchor links on home page
   $('.navigation a').click(function() {
-      $('html,body').animate({scrollTop: $(this.hash).offset().top}, 1000 );
-      return false;
+      if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') ){
+        $('html,body').animate({scrollTop: $(this.hash).offset().top}, 1000 );
+        return false;
+      }
   });
 
   </diff>
      <filename>public/javascripts/application.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>59a830db3c92c141ed88b2b9c2b22708596fb942</id>
    </parent>
  </parents>
  <author>
    <name>hgimenez</name>
    <email>harold.gimenez@gmail.com</email>
  </author>
  <url>http://github.com/bostonrb/bostonrb/commit/5514502c6e82713bc95c4aaf9241b51a0037a1d3</url>
  <id>5514502c6e82713bc95c4aaf9241b51a0037a1d3</id>
  <committed-date>2009-06-27T10:57:03-07:00</committed-date>
  <authored-date>2009-06-27T10:57:03-07:00</authored-date>
  <message>Check if the this path is the same as the linked anchor. This fixes an issue with my previous commit and clicking on nav links from outside the homepage</message>
  <tree>6090c037d409aa70efe1aa76aa701a36f1d2b3b4</tree>
  <committer>
    <name>hgimenez</name>
    <email>harold.gimenez@gmail.com</email>
  </committer>
</commit>
