diff options
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/forms.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/forms.js b/public/js/forms.js index 1efd80bb..5aa4f25a 100644 --- a/public/js/forms.js +++ b/public/js/forms.js @@ -17,8 +17,8 @@ function checkAll(id, checked) { * @param {list} shifts_list A list of numbers */ function checkOwnTypes(id, shifts_list) { - $('#' + id + ' input[type=checkbox]').each(function () { - this.checked = $.inArray(parseInt(this.value), shifts_list); + $("#" + id + " input[type='checkbox']").each(function () { + this.checked = $.inArray(parseInt(this.value), shifts_list) != -1; }); } |