Skip to content

Commit 6dfe016

Browse files
committed
misc/chrome/gophertool: lower CL number's lower bound and fix input focus on Mac
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
1 parent 70db440 commit 6dfe016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

misc/chrome/gophertool/gopher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function urlForInput(t) {
1212
}
1313

1414
if (numericRE.test(t)) {
15-
if (t < 1000000) {
15+
if (t < 150000) {
1616
return "http://code.google.com/p/go/issues/detail?id=" + t;
1717
}
1818
return "http://codereview.appspot.com/" + t + "/";

misc/chrome/gophertool/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<a href="#" onclick="openURL('http://codereview.appspot.com/')">codereview</a>,
4949
<a href="#" onclick="openURL('http://code.google.com/p/go/source/list')">commit</a>, or
5050
<a href="#" onclick="openURL('http://golang.org/pkg/')">pkg</a> id/name:</small>
51-
<form style='margin: 0' onsubmit="return navigate();"><nobr><input id="inputbox" size=10 /><input type="submit" value="go" /></nobr></form>
51+
<form style='margin: 0' onsubmit="return navigate();"><nobr><input id="inputbox" size=10 tabindex=1 /><input type="submit" value="go" /></nobr></form>
5252
<small>Also: <a href="#" onclick="openURL('http://build.golang.org/')">buildbots</small>
5353
</body>
5454
</html>

0 commit comments

Comments
 (0)