Skip to content

Commit

Permalink
Fix clashing of live logging and links with anchors.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Mar 10, 2013
1 parent 57ac9da commit 13c15d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions public/application.js
Expand Up @@ -259,10 +259,6 @@ var Live = {

return false;
});

if(this.button.attr('data-autostart') !== undefined) {
this.toggle();
}
}
}
};
Expand Down Expand Up @@ -340,6 +336,10 @@ $(document).ready(function() {
if($('#live_logging').length)
Live.init('#live_logging');

hashUpdated(true);
var hasAnchor = !!hashUpdated(true);
afterUpdate();

if($('#live_logging').attr('data-autostart') !== undefined &&
!has_anchor)
Live.toggle();
});

0 comments on commit 13c15d2

Please sign in to comment.