modqueue: remove dead "approve all" / "hide all" code (disabled since #2446).
This commit is contained in:
@@ -13,28 +13,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_approve_all_button = function() {
|
||||
$("#approve-all-button").click(function(e) {
|
||||
if (!confirm("Are you sure you want to approve every post on this page?")) {
|
||||
return;
|
||||
}
|
||||
|
||||
$(".approve-link").trigger("click");
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_hide_all_button = function() {
|
||||
$("#hide-all-button").click(function(e) {
|
||||
if (!confirm("Are you sure you want to hide every post on this page?")) {
|
||||
return;
|
||||
}
|
||||
|
||||
$(".disapprove-link").trigger("click");
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_hilights = function() {
|
||||
$.each($("div.post"), function(i, v) {
|
||||
var $post = $(v);
|
||||
@@ -77,8 +55,6 @@
|
||||
|
||||
$(function() {
|
||||
if ($("#c-moderator-post-queues").length) {
|
||||
Danbooru.ModQueue.initialize_approve_all_button();
|
||||
Danbooru.ModQueue.initialize_hide_all_button();
|
||||
Danbooru.ModQueue.initialize_hilights();
|
||||
Danbooru.ModQueue.initialize_detailed_rejection_links();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user