summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-05-31 20:06:40 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-05-31 20:06:40 +0200
commitc49ee4d3e3d1a9597601243e4887b1d446047209 (patch)
tree38e644465c658f093605def43eaa5856ec8c4123
parentd636e168a6c043ddae730f7cdaaee772b1067793 (diff)
downloadnextcloud-server-c49ee4d3e3d1a9597601243e4887b1d446047209.tar.gz
nextcloud-server-c49ee4d3e3d1a9597601243e4887b1d446047209.zip
LDAP: fix setting value of checkbox after loading configuration
-rw-r--r--apps/user_ldap/js/settings.js2
1 files changed, 1 insertions, 1 deletions
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');