mirror of
https://github.com/nextcloud/server.git
synced 2024-07-30 20:16:04 +02:00
LDAP: fix setting value of checkbox after loading configuration
This commit is contained in:
parent
d636e168a6
commit
c49ee4d3e3
@ -14,7 +14,7 @@ var LdapConfiguration = {
|
|||||||
|
|
||||||
//deal with Checkboxes
|
//deal with Checkboxes
|
||||||
if($(elementID).is('input[type=checkbox]')) {
|
if($(elementID).is('input[type=checkbox]')) {
|
||||||
if(configvalue === 1) {
|
if(parseInt(configvalue) === 1) {
|
||||||
$(elementID).attr('checked', 'checked');
|
$(elementID).attr('checked', 'checked');
|
||||||
} else {
|
} else {
|
||||||
$(elementID).removeAttr('checked');
|
$(elementID).removeAttr('checked');
|
||||||
|
Loading…
Reference in New Issue
Block a user