diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-08-22 19:58:38 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-08-22 19:58:38 +0100 |
| commit | 2d8276bad0ebf65cd45fe2dcdd85b3d7175a059d (patch) | |
| tree | 172430103844137c81e28affa8fe0b7a6c0be47f /resources/views/modules/personal_facts | |
| parent | 7aab89b47b7d7d19e855fde6d5c3fafef83b992a (diff) | |
| download | webtrees-2d8276bad0ebf65cd45fe2dcdd85b3d7175a059d.tar.gz webtrees-2d8276bad0ebf65cd45fe2dcdd85b3d7175a059d.tar.bz2 webtrees-2d8276bad0ebf65cd45fe2dcdd85b3d7175a059d.zip | |
Fix: #4000 - persistent checkbox toggles / BS5
Diffstat (limited to 'resources/views/modules/personal_facts')
| -rw-r--r-- | resources/views/modules/personal_facts/tab.phtml | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/resources/views/modules/personal_facts/tab.phtml b/resources/views/modules/personal_facts/tab.phtml index 6a6225f461..7aedc1271b 100644 --- a/resources/views/modules/personal_facts/tab.phtml +++ b/resources/views/modules/personal_facts/tab.phtml @@ -27,21 +27,21 @@ use Illuminate\Support\Collection; <td colspan="2"> <?php if ($has_associate_facts) : ?> <label> - <input id="show-associate-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-associate-fact"> + <input id="show-associate-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-associate-fact" data-wt-persist="associates"> <?= I18N::translate('Associated events') ?> </label> <?php endif ?> <?php if ($has_relative_facts) : ?> <label> - <input id="show-relatives-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-relation-fact"> + <input id="show-relatives-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-relation-fact" data-wt-persist="relatives"> <?= I18N::translate('Events of close relatives') ?> </label> <?php endif ?> <?php if ($has_historic_facts) : ?> <label> - <input id="show-historical-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-historic-fact"> + <input id="show-historical-facts" type="checkbox" data-bs-toggle="collapse" data-bs-target=".wt-historic-fact" data-wt-persist="historic-facts"> <?= I18N::translate('Historic events') ?> </label> <?php endif ?> @@ -66,13 +66,3 @@ use Illuminate\Support\Collection; </tbody> </table> </div> - -<?php View::push('javascript') ?> -<script> - 'use strict'; - - webtrees.persistentToggle('show-associate-facts'); - webtrees.persistentToggle('show-relatives-facts'); - webtrees.persistentToggle('show-historical-facts'); -</script> -<?php View::endpush() ?> |
