diff options
author | Wu Cheng-Han | 2017-02-03 22:02:12 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-02-03 22:02:12 +0800 |
commit | 1a617ddf2ee44e116a97e1bc0168af22a87d2102 (patch) | |
tree | d37d46cc965e70815704bc83e1ee2f6eb4727139 /public/js | |
parent | 7863eec3660c7d78f9cfd5b3eee0585975faac6e (diff) |
Fix duplicated headers anchor link not been updated properly
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/extra.js | 2 |
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); } |