diff options
Diffstat (limited to 'web/packs')
-rw-r--r-- | web/packs/message.js | 3 | ||||
-rw-r--r-- | web/packs/src/javascript/message/replies.js | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/web/packs/message.js b/web/packs/message.js index 8595541..c7f8f1c 100644 --- a/web/packs/message.js +++ b/web/packs/message.js @@ -1,2 +1,3 @@ import './src/javascript/message/quotes' -import './src/javascript/message/git'
\ No newline at end of file +import './src/javascript/message/git' +import './src/javascript/message/replies' diff --git a/web/packs/src/javascript/message/replies.js b/web/packs/src/javascript/message/replies.js new file mode 100644 index 0000000..4578e14 --- /dev/null +++ b/web/packs/src/javascript/message/replies.js @@ -0,0 +1,11 @@ +$("#show-more-replies").click(function () { + $(".more-replies").removeClass("d-none"); + $("#show-more-replies").addClass("d-none"); + $("#show-less-replies").removeClass("d-none"); +}); + +$("#show-less-replies").click(function () { + $(".more-replies").addClass("d-none"); + $("#show-less-replies").addClass("d-none"); + $("#show-more-replies").removeClass("d-none"); +}); |