summaryrefslogtreecommitdiffstats
path: root/core/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 /core/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 'core/js')
-rw-r--r--core/js/core.json2
-rw-r--r--core/js/lostpassword.js4
-rw-r--r--core/js/multiselect.js6
-rw-r--r--core/js/sharedialogshareelistview.js4
4 files changed, 8 insertions, 8 deletions
diff --git a/core/js/core.json b/core/js/core.json
index 670051a4ca4..555c683f6f7 100644
--- a/core/js/core.json
+++ b/core/js/core.json
@@ -1,7 +1,7 @@
{
"vendor": [
"jquery/dist/jquery.min.js",
- "jquery-migrate/jquery-migrate.js",
+ "jquery-migrate/jquery-migrate.min.js",
"jquery-ui/ui/jquery-ui.custom.js",
"underscore/underscore.js",
"moment/min/moment-with-locales.js",
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index df28c2308cb..30d7b98f4e8 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -81,12 +81,12 @@ OC.Lostpassword = {
$('#password').parents('form').attr('action'),
{
password : $('#password').val(),
- proceed: $('#encrypted-continue').attr('checked') ? 'true' : 'false'
+ proceed: $('#encrypted-continue').is(':checked') ? 'true' : 'false'
},
OC.Lostpassword.resetDone
);
}
- if($('#encrypted-continue').attr('checked')) {
+ if($('#encrypted-continue').is(':checked')) {
$('#reset-password #submit').hide();
$('#reset-password #float-spinner').removeClass('hidden');
}
diff --git a/core/js/multiselect.js b/core/js/multiselect.js
index 6d5c54ac0f5..71cf3e10a69 100644
--- a/core/js/multiselect.js
+++ b/core/js/multiselect.js
@@ -120,7 +120,7 @@
label.text(element.text() || item);
label.attr('title', element.text() || item);
if(settings.checked.indexOf(item) !== -1 || checked) {
- input.attr('checked', true);
+ input.prop('checked', true);
}
if(checked){
if(settings.singleSelect) {
@@ -145,7 +145,7 @@
element.attr('selected','selected');
if(typeof settings.oncheck === 'function') {
if(settings.oncheck(value)===false) {
- $(this).attr('checked', false);
+ $(this).prop('checked', false);
return;
}
}
@@ -157,7 +157,7 @@
element.attr('selected',null);
if(typeof settings.onuncheck === 'function') {
if(settings.onuncheck(value)===false) {
- $(this).attr('checked',true);
+ $(this).prop('checked',true);
return;
}
}
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index e4edbf24c08..fd0b6d9d1bd 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -268,11 +268,11 @@
if ($element.attr('name') === 'edit') {
checked = $element.is(':checked');
// Check/uncheck Create, Update, and Delete checkboxes if Edit is checked/unck
- $($checkboxes).attr('checked', checked);
+ $($checkboxes).prop('checked', checked);
} else {
var numberChecked = $checkboxes.filter(':checked').length;
checked = numberChecked > 0;
- $('input[name="edit"]', $li).attr('checked', checked);
+ $('input[name="edit"]', $li).prop('checked', checked);
}
var permissions = OC.PERMISSION_READ;