modqueue: move score highlighting from js to presenter.
The 'post-has-children' class was dropped because it was unused
('post-status-has-children' is already added elsewhere).
This commit is contained in:
@@ -14,22 +14,6 @@ ModQueue.increment_processed = function() {
|
||||
}
|
||||
}
|
||||
|
||||
ModQueue.initialize_hilights = function() {
|
||||
$.each($("div.post"), function(i, v) {
|
||||
var $post = $(v);
|
||||
var score = parseInt($post.data("score"));
|
||||
if (score >= 3) {
|
||||
$post.addClass("post-pos-score");
|
||||
}
|
||||
if (score <= -3) {
|
||||
$post.addClass("post-neg-score");
|
||||
}
|
||||
if ($post.data("has-children")) {
|
||||
$post.addClass("post-has-children");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ModQueue.detailed_rejection_dialog = function() {
|
||||
$("#post_disapproval_post_id").val($(this).data("post-id"));
|
||||
$("#detailed-rejection-dialog").find("form")[0].reset();
|
||||
@@ -40,11 +24,6 @@ ModQueue.detailed_rejection_dialog = function() {
|
||||
|
||||
$(function() {
|
||||
$(window).on("danbooru:modqueue_increment_processed", ModQueue.increment_processed);
|
||||
|
||||
if ($("#c-moderator-post-queues").length) {
|
||||
ModQueue.initialize_hilights();
|
||||
}
|
||||
|
||||
$(document).on("click.danbooru", ".quick-mod .detailed-rejection-link", ModQueue.detailed_rejection_dialog);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user