LDAP: fix setting value of checkbox after loading configuration

This commit is contained in:
Arthur Schiwon 2013-05-31 20:06:40 +02:00
parent d636e168a6
commit c49ee4d3e3

View file

@ -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');