mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 05:50:25 +01:00
fix blockquote toggle and use different icons
This commit is contained in:
@@ -128,12 +128,17 @@ define('forum/topic', ['forum/pagination', 'forum/infinitescroll', 'forum/topic/
|
||||
blockquotes.each(function() {
|
||||
var $this = $(this);
|
||||
if ($this.find(':hidden').length && !$this.find('.toggle').length) {
|
||||
$this.append('<i class="fa fa-ellipsis-h pointer toggle"></i>');
|
||||
$this.append('<i class="fa fa-angle-down pointer toggle"></i>');
|
||||
}
|
||||
});
|
||||
|
||||
$('.post-container').on('click', 'blockquote .toggle', function() {
|
||||
$(this).parent('blockquote').toggleClass('uncollapsed');
|
||||
$('#post-container').on('click', 'blockquote .toggle', function() {
|
||||
var blockQuote = $(this).parent('blockquote');
|
||||
var toggle = $(this);
|
||||
blockQuote.toggleClass('uncollapsed');
|
||||
var collapsed = !blockQuote.hasClass('uncollapsed');
|
||||
toggle.toggleClass('fa-angle-down', collapsed).toggleClass('fa-angle-up', !collapsed);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user