0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-16 21:34:58 +00:00

Upgraded app to Laravel 5.7

This commit is contained in:
Dan Brown 2019-09-06 23:36:16 +01:00
parent 213e9d2941
commit 6917ea088f
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
179 changed files with 829 additions and 115 deletions
resources/js/components

View file

@ -0,0 +1,20 @@
class EntityPermissionsEditor {
constructor(elem) {
this.permissionsTable = elem.querySelector('[permissions-table]');
// Handle toggle all event
this.restrictedCheckbox = elem.querySelector('[name=restricted]');
this.restrictedCheckbox.addEventListener('change', this.updateTableVisibility.bind(this));
}
updateTableVisibility() {
this.permissionsTable.style.display =
this.restrictedCheckbox.checked
? null
: 'none';
}
}
export default EntityPermissionsEditor;