fix own button

This commit is contained in:
msquare 2017-12-27 14:51:08 +01:00
parent 752ccdc482
commit 5792c96eaa
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ function checkAll(id, checked) {
* @param {list} shifts_list A list of numbers * @param {list} shifts_list A list of numbers
*/ */
function checkOwnTypes(id, shifts_list) { function checkOwnTypes(id, shifts_list) {
$('#' + id + ' input[type=checkbox]').each(function () { $("#" + id + " input[type='checkbox']").each(function () {
this.checked = $.inArray(parseInt(this.value), shifts_list); this.checked = $.inArray(parseInt(this.value), shifts_list) != -1;
}); });
} }