Gazelle/static/functions/forum_search.js

17 lines
466 B
JavaScript
Raw Normal View History

2013-06-27 08:01:06 +00:00
$(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();
2013-05-21 08:01:09 +00:00
});
2013-09-15 08:00:53 +00:00
$("#type_body").click(function() {
$("#post_created_row").gshow();
});
$("#type_title").click(function() {
$("#post_created_row").ghide();
});
2013-06-27 08:01:06 +00:00
});