updated mod queue
This commit is contained in:
24
app/assets/javascripts/mod_queue.js
Normal file
24
app/assets/javascripts/mod_queue.js
Normal file
@@ -0,0 +1,24 @@
|
||||
(function() {
|
||||
Danbooru.ModQueue = {};
|
||||
|
||||
Danbooru.ModQueue.initialize_approve_all_button = function(e) {
|
||||
$("#c-moderator-post-queues #approve-all-button").click(function() {
|
||||
$(".approve-link").trigger("click");
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_hide_all_button = function(e) {
|
||||
$("#c-moderator-post-queues #hide-all-button").click(function() {
|
||||
$(".disapprove-link").trigger("click");
|
||||
});
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
})();
|
||||
|
||||
$(function() {
|
||||
Danbooru.ModQueue.initialize_approve_all_button();
|
||||
Danbooru.ModQueue.initialize_hide_all_button();
|
||||
});
|
||||
@@ -9,6 +9,8 @@ div#c-moderator-post-queues {
|
||||
aside {
|
||||
float: left;
|
||||
width: 520px;
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
section {
|
||||
|
||||
Reference in New Issue
Block a user