mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix javascript checkbox toggle for resharing
This commit is contained in:
parent
cbba469990
commit
6895c54a3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue