Permalink
Browse files

Fix clashing of live logging and links with anchors.

  • Loading branch information...
1 parent 57ac9da commit 13c15d264b4f2759396d23d5013f44ef948bd911 @whitequark committed Mar 10, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 public/application.js
View
@@ -259,10 +259,6 @@ var Live = {
return false;
});
-
- if(this.button.attr('data-autostart') !== undefined) {
- this.toggle();
- }
}
}
};
@@ -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.