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
|
@ -146,9 +146,6 @@
|
|||
$(obj).val("");
|
||||
}
|
||||
|
||||
window.showMore = "{{$showmore}}";
|
||||
window.showFewer = "{{$showfewer}}";
|
||||
|
||||
function showHideCommentBox(id) {
|
||||
if ($("#comment-edit-form-" + id).is(":visible")) {
|
||||
$("#comment-edit-form-" + id).hide();
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
|
||||
{{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>
|
||||
<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