]> Cypherpunks repositories - gostls13.git/commitdiff
misc/chrome/gophertool: lower CL number's lower bound and fix input focus on Mac
authorShenghou Ma <minux.ma@gmail.com>
Wed, 16 May 2012 20:22:44 +0000 (04:22 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 16 May 2012 20:22:44 +0000 (04:22 +0800)
As our CL number could be as small as 152046, changed CL number's lower bound
to 150000. Hopefully our issue count won't reach 150000 any time soon.
Chrome on Mac OS X has very strange behavior regarding the focus, although we
force the focus to the input box on load, the page still come up with focus on
"issue". Set the tabindex of the input box as a workaround.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6212055

misc/chrome/gophertool/gopher.js
misc/chrome/gophertool/popup.html

index 847c1c70d6dbfefb33ed390064fadd4fabc1771f..3238f0fccd9421bf27a42cfaf7bf37006ec5f9a3 100644 (file)
@@ -12,7 +12,7 @@ function urlForInput(t) {
     }
 
     if (numericRE.test(t)) {
-        if (t < 1000000) {
+        if (t < 150000) {
             return "http://code.google.com/p/go/issues/detail?id=" + t;
         }
         return "http://codereview.appspot.com/" + t + "/";
index 4816c392be58d3e997c81b787ef260caaf5b821e..a569392d0d8391212fda715862da2e1ad8bc7fbc 100644 (file)
@@ -48,7 +48,7 @@ function openURL(url) {
 <a href="#" onclick="openURL('http://codereview.appspot.com/')">codereview</a>,
 <a href="#" onclick="openURL('http://code.google.com/p/go/source/list')">commit</a>, or
 <a href="#" onclick="openURL('http://golang.org/pkg/')">pkg</a> id/name:</small>
-<form style='margin: 0' onsubmit="return navigate();"><nobr><input id="inputbox" size=10 /><input type="submit" value="go" /></nobr></form>
+<form style='margin: 0' onsubmit="return navigate();"><nobr><input id="inputbox" size=10 tabindex=1 /><input type="submit" value="go" /></nobr></form>
 <small>Also: <a href="#" onclick="openURL('http://build.golang.org/')">buildbots</small>
 </body>
 </html>