summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-02-03 22:02:12 +0800
committerWu Cheng-Han2017-02-03 22:02:12 +0800
commit1a617ddf2ee44e116a97e1bc0168af22a87d2102 (patch)
treed37d46cc965e70815704bc83e1ee2f6eb4727139
parent7863eec3660c7d78f9cfd5b3eee0585975faac6e (diff)
Fix duplicated headers anchor link not been updated properly
-rw-r--r--public/js/extra.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index 16235669..a3e840d2 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -833,7 +833,7 @@ export function deduplicatedHeaderId(view) {
const newId = id + j;
const $duplicatedHeader = $(duplicatedHeaders[j]);
$duplicatedHeader.attr('id', newId);
- const $headerLink = $duplicatedHeader.find('> .header-link');
+ const $headerLink = $duplicatedHeader.find(`> a.anchor[href="#${id}"]`);
$headerLink.attr('href', `#${newId}`);
$headerLink.attr('title', newId);
}