diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 15:13:37 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 16:20:17 +0200 |
commit | e4a8456d0176555e2f27f21b64ac9cbab9ec940a (patch) | |
tree | 4d972427340d1533a9ceb4cae5292ebd6d93f06c /settings/js/admin.js | |
parent | 05d203a989721f3e456ba516ef07be3fd72f460b (diff) | |
download | nextcloud-server-e4a8456d0176555e2f27f21b64ac9cbab9ec940a.tar.gz nextcloud-server-e4a8456d0176555e2f27f21b64ac9cbab9ec940a.zip |
replace $().attr('checked') by $().prop('checked', state) or $().is(':checked')
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r-- | settings/js/admin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 1bbb20efa00..34e258065ce 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -38,7 +38,7 @@ $(document).ready(function(){ $('#backgroundjobs span.crondate').tipsy({gravity: 's', live: true}); $('#backgroundjobs input').change(function(){ - if($(this).attr('checked')){ + if($(this).is(':checked')){ var mode = $(this).val(); if (mode === 'ajax' || mode === 'webcron' || mode === 'cron') { OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode); @@ -131,7 +131,7 @@ $(document).ready(function(){ $('#setting_smtphost').removeClass('hidden'); $('#mail_smtpsecure_label').removeClass('hidden'); $('#mail_smtpsecure').removeClass('hidden'); - if ($('#mail_smtpauth').attr('checked')) { + if ($('#mail_smtpauth').is(':checked')) { $('#mail_credentials').removeClass('hidden'); } } |