Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/settings.js b/apps/files_sharing/js/settings.js
index f1b1643e7d6..bb7d79fecbb 100644
--- a/apps/files_sharing/js/settings.js
+++ b/apps/files_sharing/js/settings.js
@@ -1,7 +1,7 @@
$(document).ready(function() {
$('#allowResharing').bind('change', function() {
var checked = 1;
- if (!$('#allowResharing').attr('checked')) {
+ if (!this.checked) {
checked = 0;
}
$.post(OC.filePath('files_sharing','ajax','toggleresharing.php'), 'resharing='+checked);