]> Cypherpunks repositories - gostls13.git/commitdiff
doc/codewalk: make it work with jQuery 1.8.2
authorShenghou Ma <minux.ma@gmail.com>
Fri, 5 Oct 2012 15:51:40 +0000 (23:51 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 5 Oct 2012 15:51:40 +0000 (23:51 +0800)
    so that it could work with the bundled jQuery.

R=adg
CC=golang-dev
https://golang.org/cl/6592073

doc/codewalk/codewalk.js

index f780bc7a579658ee9d420c82dae0113ef88752ee..eb4667ac0c0911b0d09e5e4fcb49f7eca31a209f 100644 (file)
@@ -297,7 +297,7 @@ CodewalkViewer.prototype.updateHeight = function() {
 };
 
 jQuery(document).ready(function() {
-  var viewer = new CodewalkViewer(jQuery());
+  var viewer = new CodewalkViewer(jQuery('#codewalk-main'));
   viewer.selectFirstComment();
   viewer.targetCommentLinksAtBlank();
   viewer.installEventHandlers();