diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-10-05 21:04:53 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-10-05 21:04:53 +0100 |
| commit | f2163bca04aefe71c29b4468038c1068a87691d1 (patch) | |
| tree | ae73005012465778f1fd18765854ba32244c086e /modules_v3 | |
| parent | acf5e03631493231c50274db0ee199f7d96dcfc9 (diff) | |
| download | webtrees-f2163bca04aefe71c29b4468038c1068a87691d1.tar.gz webtrees-f2163bca04aefe71c29b4468038c1068a87691d1.tar.bz2 webtrees-f2163bca04aefe71c29b4468038c1068a87691d1.zip | |
#1222698 - Shared note display not styled
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/GEDFact_assistant/module.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php index 28de31fe5a..2c8166d439 100644 --- a/modules_v3/GEDFact_assistant/module.php +++ b/modules_v3/GEDFact_assistant/module.php @@ -214,6 +214,8 @@ class GEDFact_assistant_WT_Module extends WT_Module { // Convert custom markup into HTML public static function formatCensusNote(WT_Note $note) { + global $controller; + $headers = array( 'AgM' => 'Age at first marriage', 'Age' => 'Age at last birthday', @@ -291,7 +293,13 @@ class GEDFact_assistant_WT_Module extends WT_Module { $tbody .= '</tr>'; } + // TODO: why doesn't this work? Why do we need to add the javascript inline? + //$controller->addInlineJavascript( + // 'jQuery("head").append(\'<link rel="stylesheet" href="' . WT_STATIC_URL . WT_MODULES_DIR . 'GEDFact_assistant/css/cens_style.css" type="text/css">\');' + //); + return + '<script>jQuery("head").append(\'<link rel="stylesheet" href="' . WT_STATIC_URL . WT_MODULES_DIR . 'GEDFact_assistant/css/cens_style.css" type="text/css">\');</script>' . '<span class="note1">' . $title . '</span>' . '<br>' . // Needed to allow the first line to be converted to a link '<span class="note1">' . $preamble . '</span>' . |
