Permalink
Browse files

Fix live update autostart.

  • Loading branch information...
1 parent 13c15d2 commit 630f9f682dc4edd2e868b7e85ecf8b123f594f79 @whitequark committed Mar 10, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/application.js
View
@@ -221,6 +221,7 @@ var Live = {
};
this.scroll();
+ clearHighlight();
this.button.addClass('active');
},
@@ -336,10 +337,10 @@ $(document).ready(function() {
if($('#live_logging').length)
Live.init('#live_logging');
- var hasAnchor = !!hashUpdated(true);
+ var anchor = hashUpdated(true);
afterUpdate();
if($('#live_logging').attr('data-autostart') !== undefined &&
- !has_anchor)
+ anchor === undefined)
Live.toggle();
});

0 comments on commit 630f9f6

Please sign in to comment.