add hilighting to mod queue
This commit is contained in:
@@ -22,11 +22,31 @@
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
Danbooru.ModQueue.initialize_hilights = function() {
|
||||
$.each($("article.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");
|
||||
}
|
||||
if ($post.data("has-dup")) {
|
||||
$post.addClass("post-has-dup");
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
$(function() {
|
||||
if ($("#c-moderator-post-queues").length) {
|
||||
Danbooru.ModQueue.initialize_approve_all_button();
|
||||
Danbooru.ModQueue.initialize_hide_all_button();
|
||||
Danbooru.ModQueue.initialize_hilights();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user