{"action":"created","issue":{"url":"https://api.github.com/repos/jiren/filter.js/issues/86","labels_url":"https://api.github.com/repos/jiren/filter.js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/jiren/filter.js/issues/86/comments","events_url":"https://api.github.com/repos/jiren/filter.js/issues/86/events","html_url":"https://github.com/jiren/filter.js/issues/86","id":98695300,"number":86,"title":"Turning filters on and off","user":{"login":"bpuschl","id":1256595,"avatar_url":"https://avatars.githubusercontent.com/u/1256595?v=3","gravatar_id":"","url":"https://api.github.com/users/bpuschl","html_url":"https://github.com/bpuschl","followers_url":"https://api.github.com/users/bpuschl/followers","following_url":"https://api.github.com/users/bpuschl/following{/other_user}","gists_url":"https://api.github.com/users/bpuschl/gists{/gist_id}","starred_url":"https://api.github.com/users/bpuschl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpuschl/subscriptions","organizations_url":"https://api.github.com/users/bpuschl/orgs","repos_url":"https://api.github.com/users/bpuschl/repos","events_url":"https://api.github.com/users/bpuschl/events{/privacy}","received_events_url":"https://api.github.com/users/bpuschl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T08:20:16Z","updated_at":"2015-08-10T09:21:19Z","closed_at":null,"body":"I'm trying to create a checkbox when clicking on it, a filter is turned on and off.\r\n\r\nThe on part works but the off part fails. Any ideas why?\r\n\r\n$('#filter_grades').click(function () {\r\n        if (document.getElementById('filter_grades').checked) {\r\n            FJS.addCriteria({ field: 'grade.Name', ele: '#grade_criteria input:checkbox', all: 'all_grades' });\r\n        } else {\r\n            FJS.removeCriteria('grade.Name');\r\n        }\r\n    });\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jiren/filter.js/issues/comments/129377223","html_url":"https://github.com/jiren/filter.js/issues/86#issuecomment-129377223","issue_url":"https://api.github.com/repos/jiren/filter.js/issues/86","id":129377223,"user":{"login":"jiren","id":109756,"avatar_url":"https://avatars.githubusercontent.com/u/109756?v=3","gravatar_id":"","url":"https://api.github.com/users/jiren","html_url":"https://github.com/jiren","followers_url":"https://api.github.com/users/jiren/followers","following_url":"https://api.github.com/users/jiren/following{/other_user}","gists_url":"https://api.github.com/users/jiren/gists{/gist_id}","starred_url":"https://api.github.com/users/jiren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiren/subscriptions","organizations_url":"https://api.github.com/users/jiren/orgs","repos_url":"https://api.github.com/users/jiren/repos","events_url":"https://api.github.com/users/jiren/events{/privacy}","received_events_url":"https://api.github.com/users/jiren/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T09:21:19Z","updated_at":"2015-08-10T09:21:19Z","body":" I need to check and let you know."}}