mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
extract version logic into paste & comment classes
This commit is contained in:
parent
d73c68ad85
commit
c4b84b2b6b
5 changed files with 202 additions and 63 deletions
|
@ -63,7 +63,7 @@ describe('DiscussionViewer', function () {
|
|||
comments.forEach(function (comment) {
|
||||
comment.id = comment.idArray.join('');
|
||||
comment.parentid = comment.parentidArray.join('');
|
||||
$.PrivateBin.DiscussionViewer.addComment(comment, comment.data, comment.meta.nickname);
|
||||
$.PrivateBin.DiscussionViewer.addComment($.PrivateBin.Helper.CommentFactory(comment), comment.data, comment.meta.nickname);
|
||||
});
|
||||
results.push(
|
||||
$('#discussion').hasClass('hidden')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue