Browse Source

refactoring

pull/16476/head
Onur Pıçakcı 4 years ago
parent
commit
ce4ce20b6b
  1. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js
  2. 2
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml

2
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js

@ -120,7 +120,7 @@ $(function (){
render: function (data, type, row) { render: function (data, type, row) {
console.log(data); console.log(data);
if (data !== null) { if (data !== null) {
return '<a href="' + data + '#answer-'+ row.id + '" target="_blank"><i class="fa fa-location-arrow"></i></a>'; return '<a href="' + data + '#comment-'+ row.id + '" target="_blank"><i class="fa fa-location-arrow"></i></a>';
} }
return ""; return "";
} }

2
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml

@ -157,7 +157,7 @@
} }
@foreach (var comment in Model.Input.Comments) @foreach (var comment in Model.Input.Comments)
{ {
<div class="comment" id="answer-@comment.Id.ToString()"> <div class="comment" id="comment-@comment.Id.ToString()">
<div class="card p-3 mx-0 my-3"> <div class="card p-3 mx-0 my-3">
<h5> <h5>
@GetCommentTitle(comment.Author, comment.CreationTime).Invoke(null) @GetCommentTitle(comment.Author, comment.CreationTime).Invoke(null)

Loading…
Cancel
Save