1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

highlight current page on document TOC

This commit is contained in:
Harvey Kandola 2017-10-04 14:50:10 -04:00
parent ab7a515b9d
commit 0e00085f81
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
<ul class="index-list">
{{#each pages key="id" as |p index|}}
{{document/index-entry page=p index=index onClick=(action 'onEntryClick')}}
{{document/index-entry page=p currentPageId=currentPageId index=index onClick=(action 'onEntryClick')}}
{{/each}}
</ul>
</div>

View file

@ -1 +1 @@
<a id="index-{{page.id}}" class="link toc-index-item {{page.tocIndentCss}}" {{action 'onClick' page.id}}>{{page.title}}</a>
<a id="index-{{page.id}}" class="link toc-index-item {{page.tocIndentCss}} {{if (eq page.id currentPageId) 'selected'}} " {{action 'onClick' page.id}}>{{page.title}}</a>