mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 03:46:25 +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));
|