summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-27 14:51:08 +0100
committermsquare <msquare@notrademark.de>2017-12-27 14:51:08 +0100
commit5792c96eaa69b8e43b28a5c873a3d1d907ebc384 (patch)
tree0a71582dd576d497c51cafb5f1cd9e0cdeab8d72
parent752ccdc482c97a37cc4f6eebb9ed9b5bffb5f4a3 (diff)
fix own button
-rw-r--r--public/js/forms.js4
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;
});
}