This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-website".

The branch, master has been updated
       via  33cb73cb561a786400ea1dd907e9c1df35bf279e (commit)
      from  204ddd7d362fd86ad03047cc277610df3221ba3d (commit)


Summary of changes:
 static/media/js/init.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 33cb73cb561a786400ea1dd907e9c1df35bf279e
Author: Mighty Byte <[email protected]>
Date:   Sun Jul 4 11:23:53 2010 -0400

    Fixed "Firefox #nav highlighting" issue reported on github.

diff --git a/static/media/js/init.js b/static/media/js/init.js
index aff7caf..65504e6 100644
--- a/static/media/js/init.js
+++ b/static/media/js/init.js
@@ -6,11 +6,9 @@ $(document).ready(function(){
   });  
   $('a').click(function(){ $(this).blur(); });
 
-  var current = $.url.segment(0);
-  console.log(current);
-  if (current) {
-    $('.nav li.'+current).addClass('active');
-  }else{
+  if ($.url.segment(0)) {
+    $('.nav li.'+$.url.segment(0)).addClass('active');
+  } else {
     $('.nav .home').addClass('active');
   }
 });
-----------------------------------------------------------------------


hooks/post-receive
-- 
snap-website
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to