Skip to content

Commit

Permalink
Merge branch 'feature/redesign' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed May 22, 2011
2 parents 3615533 + aadabce commit a1b5926
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions public/js/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,22 @@ $(document).ready ->

# Set equal heights for 3-column area
$("#pitch").equalHeights()


#########################################
# Updates
#########################################

# PJAX-ify the tabs
$('a#tab-replies').pjax('#timeline')
$('a#tab-timeline').pjax('#timeline')
$('a#tab-world').pjax('#timeline')
$('#navigation a').pjax('#content .updates').click ->
# Set clicked tab to be given active class when pjax returns
$('#navigation a').removeClass("next")
$(this).addClass("next");

$("#content .updates").bind "end.pjax", pjaxSuccess = ->
# Set active class appropriately
$('#navigation li').removeClass("active")
$('#navigation a.next').parent().addClass("active")


#########################################
# Update Form
Expand Down

0 comments on commit a1b5926

Please sign in to comment.