summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogshareelistview.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/sharedialogshareelistview.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/sharedialogshareelistview.js')
-rw-r--r--core/js/sharedialogshareelistview.js4
1 files changed, 2 insertions, 2 deletions
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;