added post#annihilate, removed stale post_moderation views
This commit is contained in:
@@ -1 +1,6 @@
|
||||
$("#post-<%= @post.id %>").remove();
|
||||
$("#c-posts #approve").hide();
|
||||
$("#c-posts #disapprove").hide();
|
||||
$("#c-posts #flag").show();
|
||||
|
||||
$("#c-post-moderation #post-<%= @post.id %>").hide();
|
||||
Danbooru.notice("Post was approved");
|
||||
@@ -1 +1,13 @@
|
||||
$("#post-<%= @post.id %>").remove();
|
||||
<% if @post_disapproval.errors.any? %>
|
||||
|
||||
Danbooru.j_error("Error: " + "<%= j @post_disapproval.errors.full_messages.join("; ") %>");
|
||||
|
||||
<% else %>
|
||||
|
||||
$("#c-posts #approve").hide();
|
||||
$("#c-posts #disapprove").hide();
|
||||
|
||||
$("#c-post-moderation #post-<%= @post.id %>").hide();
|
||||
Danbooru.notice("Post was disapproved");
|
||||
|
||||
<% end %>
|
||||
1
app/views/moderator/post/posts/annihilate.js.erb
Normal file
1
app/views/moderator/post/posts/annihilate.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
Danbooru.notice("Post was annihilated");
|
||||
@@ -1 +1,4 @@
|
||||
$("#post-<%= @post.id %>").remove();
|
||||
$("#c-posts #delete").hide();
|
||||
$("#c-posts #undelete").show();
|
||||
$("#c-post-moderation #post-<%= @post.id %>").remove();
|
||||
Danbooru.notice("Post was deleted");
|
||||
@@ -0,0 +1,3 @@
|
||||
$("#c-posts #delete").show();
|
||||
$("#c-posts #undelete").hide();
|
||||
Danbooru.notice("Post was undeleted");
|
||||
Reference in New Issue
Block a user