#223 link to comments
This commit is contained in:
parent
a932556bbb
commit
13536f81e1
@ -34,12 +34,13 @@ else
|
||||
<p>
|
||||
@if (Model.Comment.MyComment)
|
||||
{
|
||||
<a role="button" onclick="deleteMyComment(@Model.Comment.Id, '@Model.Comment.CoupletIndex')" class="actionlink" title="حذف حاشیه"><i class="pageicons">delete</i></a>
|
||||
<a role="button" onclick="editMyComment(@Model.Comment.Id, '@Model.Comment.CoupletIndex')" class="actionlink" title="ویرایش حاشیه"><i class="pageicons">edit</i></a>
|
||||
<a role="button" onclick="deleteMyComment(@Model.Comment.Id, '@Model.Comment.CoupletIndex')" class="w3tooltip"><i class="pageicons">delete</i><span class="w3tooltiptext">حذف حاشیه</span></a>
|
||||
<a role="button" onclick="editMyComment(@Model.Comment.Id, '@Model.Comment.CoupletIndex')" class="w3tooltip"><i class="pageicons">edit</i><span class="w3tooltiptext">ویرایش حاشیه</span></a>
|
||||
}
|
||||
|
||||
<a role="button" onclick="replyComment(@Model.Comment.Id, @(Model.LoggedIn ? "true" : "false"), '@Model.DivSuffix')" class="actionlink" title="پاسخگویی به این حاشیه"><i class="pageicons">reply</i></a>
|
||||
<a href="/ReportComment/?CommentId=@Model.Comment.Id" onclick="wpopen(this.href); return false" class="comments-link" title="گزارش حاشیهٔ نامناسب"><i class="pageicons">flag</i></a>
|
||||
<a role="button" onclick="replyComment(@Model.Comment.Id, @(Model.LoggedIn ? "true" : "false"), '@Model.DivSuffix')" class="w3tooltip"><i class="pageicons">reply</i><span class="w3tooltiptext">پاسخگویی به این حاشیه</span></a>
|
||||
<a href="/ReportComment/?CommentId=@Model.Comment.Id" onclick="wpopen(this.href); return false" class="w3tooltip"><i class="pageicons">flag</i><span class="w3tooltiptext">گزارش حاشیهٔ نامناسب</span></a>
|
||||
<a role="button" onclick="copyCommentUrl(@Model.Comment.Id)" class="w3tooltip"><i class="pageicons">link</i><span class="w3tooltiptext" id="copycommentlink-tooltip-@Model.Comment.Id">رونوشت نشانی حاشیه</span></a>
|
||||
</p>
|
||||
<div class='spacer'> </div>
|
||||
<hr />
|
||||
|
||||
@ -810,3 +810,13 @@ function editComment() {
|
||||
});
|
||||
}
|
||||
|
||||
function copyCommentUrl(commentId) {
|
||||
var url = window.location.href;
|
||||
if (url.indexOf('#') != -1) {
|
||||
url = url.substring(0, url.indexOf('#'));
|
||||
}
|
||||
url += ('#comment-' + String(commentId));
|
||||
navigator.clipboard.writeText(url);
|
||||
var tooltip = document.getElementById("copycommentlink-tooltip-" + String(commentId));
|
||||
tooltip.innerHTML = "نشانی در حافظه رونوشت شد: " + url;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user