mode menu: remove approve option.
Remove the approve option from the post mode menu. Mass approving posts is rarely needed. The javascript was also buggy (it didn't update the data attributes correctly when undeleting a post). The replacement for this feature is to use a tagscript with the status:active tag.
This commit is contained in:
@@ -521,23 +521,6 @@ Post.update = function(post_id, params) {
|
||||
});
|
||||
}
|
||||
|
||||
Post.approve = function(post_id) {
|
||||
$.post(
|
||||
"/post_approvals.json",
|
||||
{"post_id": post_id}
|
||||
).fail(function(data) {
|
||||
var message = $.map(data.responseJSON.errors, function(msg, attr) { return msg; }).join("; ");
|
||||
Utility.error("Error: " + message);
|
||||
}).done(function(data) {
|
||||
var $post = $("#post_" + post_id);
|
||||
if ($post.length) {
|
||||
$post.data("flags", $post.data("flags").replace(/pending/, ""));
|
||||
$post.removeClass("post-status-pending");
|
||||
Utility.notice("Approved post #" + post_id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Post.initialize_saved_searches = function() {
|
||||
$("#save-search-dialog").dialog({
|
||||
width: 700,
|
||||
|
||||
Reference in New Issue
Block a user