godoc: Regenerate static/static.go

Picks up changes made in previous commits.

Change-Id: I8edc9e0a512e4d687c471274faaa06e0b40ea657
Reviewed-on: https://go-review.googlesource.com/34283
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Kevin Burke 2016-12-12 11:16:46 -08:00 committed by Brad Fitzpatrick
parent 7d72743fce
commit 7932c3d4c8
1 changed files with 2 additions and 2 deletions

View File

@ -878,7 +878,7 @@ function updateVersionTags() {
function addPermalinks() {
function addPermalink(source, parent) {
var id = source.attr("id");
if (id.indexOf("tmp_") === 0) {
if (id == "" || id.indexOf("tmp_") === 0) {
// Auto-generated permalink.
return;
}
@ -886,7 +886,7 @@ function addPermalinks() {
// Already attached.
return;
}
parent.append(" ").append($("&nbsp;<a class='permalink'>&#xb6;</a>").attr("href", "#" + id));
parent.append(" ").append($("<a class='permalink'>&#xb6;</a>").attr("href", "#" + id));
}
$("#page .container").find("h2[id], h3[id]").each(function() {