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:
parent
ab7a515b9d
commit
0e00085f81
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue