summaryrefslogtreecommitdiff
path: root/resources/views/modules/notes
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/notes')
-rw-r--r--resources/views/modules/notes/tab.phtml10
1 files changed, 1 insertions, 9 deletions
diff --git a/resources/views/modules/notes/tab.phtml b/resources/views/modules/notes/tab.phtml
index 7d716d7126..6182c0f4eb 100644
--- a/resources/views/modules/notes/tab.phtml
+++ b/resources/views/modules/notes/tab.phtml
@@ -22,7 +22,7 @@ use Illuminate\Support\Collection;
<tr>
<td colspan="2">
<label>
- <input id="show-level-2-notes" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-level-two-note">
+ <input id="show-level-2-notes" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-level-two-note" data-wt-persist="level-two-notes">
<?= I18N::translate('Show all notes') ?>
</label>
</td>
@@ -57,11 +57,3 @@ use Illuminate\Support\Collection;
<?php endif ?>
</table>
</div>
-
-<?php View::push('javascript') ?>
-<script>
- 'use strict';
-
- webtrees.persistentToggle("show-level-2-notes");
-</script>
-<?php View::endpush() ?>