Skip to content

Commit

Permalink
fixed pjax with div not h2
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Westerlund committed Jun 18, 2011
1 parent d566298 commit ddcf1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TrainChallange = (function(){
var setTitle = function(){
$("article").bind("end.pjax", function(){
$("title").text($("h2#fittext").text().substr(0, 100));
$("title").text($("div#fittext").text().substr(0, 100));
});
};
var setText = function(){
Expand Down

0 comments on commit ddcf1b7

Please sign in to comment.