From: Shenghou Ma Date: Fri, 5 Oct 2012 15:51:40 +0000 (+0800) Subject: doc/codewalk: make it work with jQuery 1.8.2 X-Git-Tag: go1.1rc2~2250 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4077819f558bd7020bc6d66da6827ce97ce63b99;p=gostls13.git doc/codewalk: make it work with jQuery 1.8.2 so that it could work with the bundled jQuery. R=adg CC=golang-dev https://golang.org/cl/6592073 --- diff --git a/doc/codewalk/codewalk.js b/doc/codewalk/codewalk.js index f780bc7a57..eb4667ac0c 100644 --- a/doc/codewalk/codewalk.js +++ b/doc/codewalk/codewalk.js @@ -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();