summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-19 15:13:37 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-04-19 16:20:17 +0200
commite4a8456d0176555e2f27f21b64ac9cbab9ec940a (patch)
tree4d972427340d1533a9ceb4cae5292ebd6d93f06c /settings/js
parent05d203a989721f3e456ba516ef07be3fd72f460b (diff)
downloadnextcloud-server-e4a8456d0176555e2f27f21b64ac9cbab9ec940a.tar.gz
nextcloud-server-e4a8456d0176555e2f27f21b64ac9cbab9ec940a.zip
replace $().attr('checked') by $().prop('checked', state) or $().is(':checked')
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/admin.js4
-rw-r--r--settings/js/apps.js8
2 files changed, 6 insertions, 6 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');
}
}
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 1b687012815..015236f957d 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -193,15 +193,15 @@ OC.Settings.Apps = OC.Settings.Apps || {
OC.Settings.Apps.isType(app, 'authentication') || OC.Settings.Apps.isType(app, 'logging') ||
OC.Settings.Apps.isType(app, 'prevent_group_restriction')) {
page.find(".groups-enable").hide();
- page.find(".groups-enable__checkbox").attr('checked', null);
+ page.find(".groups-enable__checkbox").prop('checked', false);
} else {
page.find('#group_select').val((app.groups || []).join('|'));
if (app.active) {
if (app.groups.length) {
OC.Settings.Apps.setupGroupsSelect(page.find('#group_select'));
- page.find(".groups-enable__checkbox").attr('checked','checked');
+ page.find(".groups-enable__checkbox").prop('checked', true);
} else {
- page.find(".groups-enable__checkbox").attr('checked', null);
+ page.find(".groups-enable__checkbox").prop('checked', false);
}
page.find(".groups-enable").show();
} else {
@@ -289,7 +289,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (OC.Settings.Apps.isType(app, 'filesystem') || OC.Settings.Apps.isType(app, 'prelogin') ||
OC.Settings.Apps.isType(app, 'authentication') || OC.Settings.Apps.isType(app, 'logging')) {
- element.parent().find(".groups-enable").attr('checked', null);
+ element.parent().find(".groups-enable").prop('checked', true);
element.parent().find(".groups-enable").hide();
element.parent().find('#group_select').hide().val(null);
} else {