(row, checked)
| 124 | } |
| 125 | |
| 126 | function onShareFileToggle(row, checked) { |
| 127 | if (!checked) return; |
| 128 | const viewAll = qs(row, 'input[data-cap="view"]'); |
| 129 | const viewOwn = qs(row, 'input[data-cap="viewOwn"]'); |
| 130 | const hasView = !!(viewAll && viewAll.checked); |
| 131 | const hasOwn = !!(viewOwn && viewOwn.checked); |
| 132 | if (!hasView && !hasOwn && viewOwn) { |
| 133 | viewOwn.checked = true; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | function onShareFolderToggle(row, checked) { |
| 138 | if (checked) { |