]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: fix setting value of checkbox after loading configuration
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 31 May 2013 18:06:40 +0000 (20:06 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 31 May 2013 18:06:40 +0000 (20:06 +0200)
apps/user_ldap/js/settings.js

index f47d49cf222a9142b433b55c9a58966b27f75dab..52d5dbc48d97d85431aacedc3aaa417db30816b0 100644 (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');