Oops, flagging and deleting got confused
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
|
||||
.copy-link-wrapper, .confirm-wrapper, #update-avatar-dialog {
|
||||
.copy-link-wrapper, .confirm-wrapper, .confirm-wrapper-flag, #update-avatar-dialog {
|
||||
z-index: 870;
|
||||
padding: 2rem;
|
||||
position: fixed;
|
||||
@@ -115,6 +115,26 @@
|
||||
left: 50%;
|
||||
}
|
||||
}
|
||||
.confirm-wrapper-flag {
|
||||
|
||||
max-width: 360px;
|
||||
padding: 2.5rem;
|
||||
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: .5rem;
|
||||
}
|
||||
|
||||
.active.confirm-prompt-flag & {
|
||||
clip: auto;
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
#update-avatar-dialog {
|
||||
.active.uploading-image & {
|
||||
|
||||
@@ -243,6 +243,7 @@ $(function () {
|
||||
|
||||
$body.addClass("active confirm-prompt");
|
||||
|
||||
console.log(typeOfPost);
|
||||
$confirmType.html(typeOfPost);
|
||||
|
||||
$("#confirm-wrapper .green").unbind("click");
|
||||
@@ -258,17 +259,17 @@ $(function () {
|
||||
|
||||
function flagConfirm(typeOfPost, id, memberId) {
|
||||
var $body = $("body");
|
||||
$body.addClass("active confirm-prompt");
|
||||
$body.addClass("active confirm-prompt-flag");
|
||||
|
||||
$("#confirm-wrapper-flag .green").unbind("click");
|
||||
$("#confirm-wrapper-flag .green").on("click", function () {
|
||||
community.flag(id, typeOfPost, memberId);
|
||||
$body.removeClass("active confirm-prompt");
|
||||
$body.removeClass("active confirm-prompt-flag");
|
||||
});
|
||||
|
||||
|
||||
$("#confirm-wrapper-flag .red").on("click", function () {
|
||||
$body.removeClass("active confirm-prompt");
|
||||
$body.removeClass("active confirm-prompt-flag");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
<!-- DELETE THREAD END -->
|
||||
<!-- FLAG SPAM START -->
|
||||
<div id="confirm-wrapper-flag" class="confirm-wrapper">
|
||||
<div id="confirm-wrapper-flag" class="confirm-wrapper-flag">
|
||||
<h4>Flag this post as spam?</h4>
|
||||
<p>This post will be reported to the moderators as potential spam to be looked at</p>
|
||||
<br />
|
||||
|
||||
@@ -104,7 +104,7 @@ if (topicAuthor != null && (Model.IsSpam == false || currentMember.Id == topicAu
|
||||
<i class="icon-Edit"></i><span>Edit</span>
|
||||
</a>
|
||||
|
||||
<a href="#" class="delete-reply" data-id="@Model.Id">
|
||||
<a href="#" class="delete-thread" data-id="@Model.Id">
|
||||
<i class="icon-Delete-key"></i><span>Delete</span>
|
||||
</a>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user