mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
cleans more comment link
This commit is contained in:
parent
dad0d3868b
commit
77df0bc82c
1 changed files with 2 additions and 6 deletions
|
@ -54,12 +54,6 @@ var Comments = (function() {
|
|||
var list = $(this).parents('ul');
|
||||
var moreBtn = list.find('.btn-more-comments');
|
||||
var listItem = moreBtn.parents('li');
|
||||
// removes duplicated dates
|
||||
if ( list.find($('.comment-date-separator'))
|
||||
.first().find('p').text() ===
|
||||
$(data.html).first().find('p').text() ) {
|
||||
list.find($('.comment-date-separator'))[0].remove();
|
||||
}
|
||||
|
||||
$(data.html).insertAfter(listItem);
|
||||
if (data.resultsNumber < data.perPage) {
|
||||
|
@ -73,6 +67,8 @@ var Comments = (function() {
|
|||
scrollCommentOptions(listItem
|
||||
.closest('.content-comments')
|
||||
.find('.dropdown-comment'));
|
||||
} else {
|
||||
$('.btn-more-comments').remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue