diff options
author | 2020-04-20 18:28:35 +0200 | |
---|---|---|
committer | 2020-04-20 18:28:35 +0200 | |
commit | e52d831e385a09802f3f94a865ba157d0eba4e84 (patch) | |
tree | 666c6ef24f2e31c9b8aebb64ebf0d9285aff7baa /web | |
parent | Make the label on the login page clickable (diff) | |
download | glsamaker-master.tar.gz glsamaker-master.tar.bz2 glsamaker-master.zip |
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/packs/src/javascript/cvetool.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/packs/src/javascript/cvetool.js b/web/packs/src/javascript/cvetool.js index b9a8272..1e483b8 100644 --- a/web/packs/src/javascript/cvetool.js +++ b/web/packs/src/javascript/cvetool.js @@ -339,7 +339,7 @@ function registerCommentListener(){ if(data != "err") { var comment = JSON.parse(data); var commentDate = '<small class="text-muted">' + comment.Date.split("T")[0] + ' ' + comment.Date.split("T")[1].split(".")[0] + ' UTC</small>'; - var newComment = '<div class="col-3 text-right mb-3"><b>' + comment.User.Name + '</b><br/>' + commentDate + '</div><div class="col-9 mb-3"><div class="card" style="background: none;"><div class="card-body">' + escape(comment.Message) + '</div></div></div>'; + var newComment = '<div class="col-3 text-right mb-3"><b>' + comment.User.Name + '</b><br/>' + commentDate + '</div><div class="col-9 mb-3"><div class="card" style="background: none;"><div class="card-body">' + comment.Message + '</div></div></div>'; $('.comments-section[data-cveid="' + cveid + '"]').append(newComment); } return @@ -517,4 +517,6 @@ function updateBugInformation(cveid, bugid){ }); } + + export default {initDatatable, destroyDatatable} |