From: Arthur Schiwon Date: Fri, 31 May 2013 18:06:40 +0000 (+0200) Subject: LDAP: fix setting value of checkbox after loading configuration X-Git-Tag: v6.0.0alpha2~702^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c49ee4d3e3d1a9597601243e4887b1d446047209;p=nextcloud-server.git LDAP: fix setting value of checkbox after loading configuration --- diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index f47d49cf222..52d5dbc48d9 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -14,7 +14,7 @@ var LdapConfiguration = { //deal with Checkboxes if($(elementID).is('input[type=checkbox]')) { - if(configvalue === 1) { + if(parseInt(configvalue) === 1) { $(elementID).attr('checked', 'checked'); } else { $(elementID).removeAttr('checked');