Improved comment hiding interaction
- Remove global window.showMore and window.showFewer - Improve global showHideComments function - Remove frio-specific showHideComments function
This commit is contained in:
parent
642f9409a7
commit
d7dbc632f8
11 changed files with 47 additions and 60 deletions
|
@ -1,19 +1,13 @@
|
|||
{{if $mode == display}}
|
||||
{{else}}
|
||||
{{if $item.comment_firstcollapsed}}
|
||||
<div class="hide-comments-outer">
|
||||
<span id="hide-comments-total-{{$item.id}}"
|
||||
class="hide-comments-total">{{$item.num_comments}}</span>
|
||||
<span id="hide-comments-{{$item.id}}"
|
||||
class="hide-comments fakelink"
|
||||
onclick="showHideComments({{$item.id}});">{{$item.hide_text}}</span>
|
||||
{{if $item.thread_level==3}} -
|
||||
<span id="hide-thread-{{$item}}-id"
|
||||
class="fakelink"
|
||||
onclick="showThread({{$item.id}});">expand</span> /
|
||||
<span id="hide-thread-{{$item}}-id"
|
||||
class="fakelink"
|
||||
onclick="hideThread({{$item.id}});">collapse</span> thread{{/if}}
|
||||
<div class="hide-comments-outer fakelink" onclick="showHideComments({{$item.id}});">
|
||||
<span id="hide-comments-total-{{$item.id}}" class="hide-comments-total">
|
||||
{{$item.num_comments}} - {{$item.show_text}}
|
||||
</span>
|
||||
<span id="hide-comments-{{$item.id}}" class="hide-comments" style="display: none">
|
||||
{{$item.num_comments}} - {{$item.hide_text}}
|
||||
</span>
|
||||
</div>
|
||||
<div id="collapsed-comments-{{$item.id}}" class="collapsed-comments" style="display: none;">
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue