diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-10-14 13:39:42 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-10-14 13:40:15 +0100 |
| commit | d703116256db00989b51d7a1566b0db7afca2087 (patch) | |
| tree | cbfecc30dcc6da5f65df65ccb46b4a890ab5b9c9 | |
| parent | bbaf543d2a190194916fbd63bd1af6ffcd445364 (diff) | |
| download | webtrees-d703116256db00989b51d7a1566b0db7afca2087.tar.gz webtrees-d703116256db00989b51d7a1566b0db7afca2087.tar.bz2 webtrees-d703116256db00989b51d7a1566b0db7afca2087.zip | |
Fix #1408 - hide/show historic/relation facts
| -rw-r--r-- | app/Functions/FunctionsPrintFacts.php | 6 | ||||
| -rw-r--r-- | app/Module/IndividualFactsTabModule.php | 4 | ||||
| -rwxr-xr-x | themes/clouds/css-2.0.0/style.css | 4 | ||||
| -rwxr-xr-x | themes/colors/css-2.0.0/style.css | 4 | ||||
| -rwxr-xr-x | themes/fab/css-2.0.0/style.css | 4 | ||||
| -rwxr-xr-x | themes/webtrees/css-2.0.0/style.css | 4 | ||||
| -rwxr-xr-x | themes/xenea/css-2.0.0/style.css | 4 |
7 files changed, 15 insertions, 15 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php index 62b30f099c..2ba940f972 100644 --- a/app/Functions/FunctionsPrintFacts.php +++ b/app/Functions/FunctionsPrintFacts.php @@ -113,17 +113,17 @@ class FunctionsPrintFacts { // Event of close relative if (preg_match('/^_[A-Z_]{3,5}_[A-Z0-9]{4}$/', $fact->getTag())) { - $styleadd = trim($styleadd . ' rela'); + $styleadd = trim($styleadd . ' wt-relation-fact collapse'); } // Event of close associates if ($fact->getFactId() == 'asso') { - $styleadd = trim($styleadd . ' rela'); + $styleadd = trim($styleadd . ' wt-relation-fact collapse'); } // historical facts if ($fact->getFactId() == 'histo') { - $styleadd = trim($styleadd . ' histo'); + $styleadd = trim($styleadd . ' wt-historic-fact collapse'); } // Does this fact have a type? diff --git a/app/Module/IndividualFactsTabModule.php b/app/Module/IndividualFactsTabModule.php index 37d6ca43f7..2b792567f5 100644 --- a/app/Module/IndividualFactsTabModule.php +++ b/app/Module/IndividualFactsTabModule.php @@ -125,13 +125,13 @@ class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterf <td colspan="2"> <?php if ($controller->record->getTree()->getPreference('SHOW_RELATIVES_EVENTS')) : ?> <label> - <input id="show-relatives-facts" type="checkbox"> + <input id="show-relatives-facts" type="checkbox" data-toggle="collapse" data-target=".wt-relation-fact"> <?= I18N::translate('Events of close relatives') ?> </label> <?php endif ?> <?php if (file_exists(Site::getPreference('INDEX_DIRECTORY') . 'histo.' . WT_LOCALE . '.php')) : ?> <label> - <input id="show-historical-facts" type="checkbox"> + <input id="show-historical-facts" type="checkbox" data-toggle="collapse" data-target=".wt-historic-fact"> <?= I18N::translate('Historical facts') ?> </label> <?php endif ?> diff --git a/themes/clouds/css-2.0.0/style.css b/themes/clouds/css-2.0.0/style.css index 59e1c0cf1b..728e4f94d3 100755 --- a/themes/clouds/css-2.0.0/style.css +++ b/themes/clouds/css-2.0.0/style.css @@ -1610,8 +1610,8 @@ a:hover .nameZoom { color: #f00; } -.rela, -.histo { +.wt-relation-fact, +.wt-historic-fact { opacity: 0.8; } diff --git a/themes/colors/css-2.0.0/style.css b/themes/colors/css-2.0.0/style.css index 33d80110d0..89af6ea4a4 100755 --- a/themes/colors/css-2.0.0/style.css +++ b/themes/colors/css-2.0.0/style.css @@ -1508,8 +1508,8 @@ a:hover .nameZoom { color: #f00; } -.rela, -.histo { +.wt-relation-fact, +.wt-historic-fact { opacity: 0.8; } diff --git a/themes/fab/css-2.0.0/style.css b/themes/fab/css-2.0.0/style.css index 153ba398de..b7b434228b 100755 --- a/themes/fab/css-2.0.0/style.css +++ b/themes/fab/css-2.0.0/style.css @@ -1042,8 +1042,8 @@ a:hover .nameZoom { color: #f00; } -.rela, -.histo { +.wt-relation-fact, +.wt-historic-fact { opacity: 0.8; } diff --git a/themes/webtrees/css-2.0.0/style.css b/themes/webtrees/css-2.0.0/style.css index d1f378e258..babda24a2d 100755 --- a/themes/webtrees/css-2.0.0/style.css +++ b/themes/webtrees/css-2.0.0/style.css @@ -1509,8 +1509,8 @@ a:hover .nameZoom { color: #f00; } -.rela, -.histo { +.wt-relation-fact, +.wt-historic-fact { opacity: 0.8; } diff --git a/themes/xenea/css-2.0.0/style.css b/themes/xenea/css-2.0.0/style.css index 63ff8251d6..07c7c6b50b 100755 --- a/themes/xenea/css-2.0.0/style.css +++ b/themes/xenea/css-2.0.0/style.css @@ -1499,8 +1499,8 @@ a:hover .nameZoom { color: #f00; } -.rela, -.histo { +.wt-relation-fact, +.wt-historic-fact { opacity: 0.8; } |
