mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
(function ($) {
|
|
$(document).ready(function() {
|
|
$(".forum_category").click(function(e) {
|
|
var id = this.id;
|
|
var isChecked = $(this).text() != "Check all";
|
|
isChecked ? $(this).text("Check all") : $(this).text("Uncheck all");
|
|
$("input[data-category='" + id + "']").attr("checked", !isChecked);
|
|
e.preventDefault();
|
|
});
|
|
});
|
|
}(jQuery));
|