diff options
Diffstat (limited to 'lib/scripts/page.js')
-rw-r--r-- | lib/scripts/page.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/scripts/page.js b/lib/scripts/page.js index 284c2038b..77d644a38 100644 --- a/lib/scripts/page.js +++ b/lib/scripts/page.js @@ -9,6 +9,7 @@ dw_page = { */ init: function(){ dw_page.sectionHighlight(); + dw_page.currentIDHighlight(); jQuery('a.fn_top').on('mouseover', dw_page.footnoteDisplay); dw_page.makeToggle('#dw__toc h3','#dw__toc > div'); }, @@ -46,6 +47,16 @@ dw_page = { }); }, + + /** + * Highlight internal link pointing to current page + * + * @author Henry Pan <dokuwiki@phy25.com> + */ + currentIDHighlight: function(){ + jQuery('a.wikilink1, a.wikilink2').filter('[data-wiki-id="'+JSINFO.id+'"]').wrap('<span class="curid"></div>'); + }, + /** * Create/get a insitu popup used by the footnotes * |