diff --git a/app/templates/book/modals/access_level_modal.html b/app/templates/book/modals/access_level_modal.html index 2fe3328..f21ccd6 100644 --- a/app/templates/book/modals/access_level_modal.html +++ b/app/templates/book/modals/access_level_modal.html @@ -20,54 +20,72 @@
-
diff --git a/src/indeterminateInputs.ts b/src/indeterminateInputs.ts new file mode 100644 index 0000000..3f3d0ee --- /dev/null +++ b/src/indeterminateInputs.ts @@ -0,0 +1,9 @@ +export function indeterminateInputs() { + const indeterminatedInputs = document.querySelectorAll( + 'input[indeterminate=true]', + ); + + indeterminatedInputs.forEach((element: HTMLInputElement) => { + element.indeterminate = true; + }); +} diff --git a/src/main.ts b/src/main.ts index bab3c53..253cc44 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,6 +29,7 @@ import {flash} from './flash'; import {slashSearch} from './slashSearch'; import {editInterpretations} from './editInterpretations'; import {deleteInterpretation} from './deleteInterpretation'; +import {indeterminateInputs} from './indeterminateInputs'; initQuillReadOnly(); initBooks(); @@ -61,3 +62,4 @@ flash(); slashSearch(); editInterpretations(); deleteInterpretation(); +indeterminateInputs();