31 lines
825 B
JavaScript
31 lines
825 B
JavaScript
(function() {
|
|
Danbooru.ModQueue = {};
|
|
|
|
Danbooru.ModQueue.initialize_approve_all_button = function() {
|
|
$("#c-moderator-post-queues #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() {
|
|
$("#c-moderator-post-queues #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();
|
|
});
|
|
}
|
|
})();
|
|
|
|
$(function() {
|
|
Danbooru.ModQueue.initialize_approve_all_button();
|
|
Danbooru.ModQueue.initialize_hide_all_button();
|
|
});
|