added confirmation step for approve all/hide all
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
(function() {
|
||||
Danbooru.ModQueue = {};
|
||||
|
||||
Danbooru.ModQueue.initialize_approve_all_button = function(e) {
|
||||
$("#c-moderator-post-queues #approve-all-button").click(function() {
|
||||
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();
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_hide_all_button = function(e) {
|
||||
$("#c-moderator-post-queues #hide-all-button").click(function() {
|
||||
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();
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user