From 7932c3d4c815fb3eb39a35ff33622a7eeb8c436f Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Mon, 12 Dec 2016 11:16:46 -0800 Subject: [PATCH] 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 --- godoc/static/static.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godoc/static/static.go b/godoc/static/static.go index 2d5fbe40..a024ca09 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -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($(" ").attr("href", "#" + id)); + parent.append(" ").append($("").attr("href", "#" + id)); } $("#page .container").find("h2[id], h3[id]").each(function() {