@@ -1,5 +1,5 @@
1$(document).ready(function() {
1$(document).ready(function() {
2− if($('#q')) {
2+ if($('#q').length) {
3 $('#categories label').click(function(e) {
3 $('#categories label').click(function(e) {
4 $('#categories input[type="checkbox"]').each(function(i, checkbox) {
4 $('#categories input[type="checkbox"]').each(function(i, checkbox) {
5 $(checkbox).prop('checked', false);
5 $(checkbox).prop('checked', false);