diff options
| author | Greg Roach <fisharebest@gmail.com> | 2013-11-03 09:17:16 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2013-11-03 09:17:16 +0000 |
| commit | f078f27b517869266bd24d494ffc10c3abc9b686 (patch) | |
| tree | f160c9196575bd3eebd15d114dc8832864ef2ff1 /modules_v3 | |
| parent | aba438fbd4a279140a9e95b6d8b4f026974a13d8 (diff) | |
| download | webtrees-f078f27b517869266bd24d494ffc10c3abc9b686.tar.gz webtrees-f078f27b517869266bd24d494ffc10c3abc9b686.tar.bz2 webtrees-f078f27b517869266bd24d494ffc10c3abc9b686.zip | |
Styling for census-assistant generated tables
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/GEDFact_assistant/css/cens_style.css | 3 | ||||
| -rw-r--r-- | modules_v3/GEDFact_assistant/module.php | 15 |
2 files changed, 4 insertions, 14 deletions
diff --git a/modules_v3/GEDFact_assistant/css/cens_style.css b/modules_v3/GEDFact_assistant/css/cens_style.css index 0558c151f0..6ed9fa680b 100644 --- a/modules_v3/GEDFact_assistant/css/cens_style.css +++ b/modules_v3/GEDFact_assistant/css/cens_style.css @@ -54,9 +54,6 @@ textarea#NOTE {font-size: 12px;height:250px; width:98.5%; overflow:auto;} .rtlnav {position:absolute; top:-15px; right:40px;} .headimg {margin-top:-4px; border:0;} .headimg2 {height:17px; border-style:none;margin:-3px;margin-left:0px;} -.note1 {font-weight: bold;} -.note2 {font-weight: bold;} -.notecell {white-space: nowrap;} #edit_interface-page input#personid {width:160px;} html[dir='rtl'] .cens_header {text-align:right;} diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php index 365b8fba5a..a984e5ffc3 100644 --- a/modules_v3/GEDFact_assistant/module.php +++ b/modules_v3/GEDFact_assistant/module.php @@ -293,21 +293,14 @@ 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>' . - '<table class="note2">' . + $title . "\n" . // The newline allows the framework to expand the details and turn the first line into a link + '<p>' . $preamble . '</p>' . + '<table class="table-census-assistant">' . '<thead>' . $thead . '</thead>' . '<tbody>' . $tbody . '</tbody>' . '</table>' . - '<span class="note1">' . $postamble . '</span>'; + '<p>' . $postamble . '</p>'; } else { // Not a census-assistant shared note - apply default formatting return WT_Filter::expandUrls($note->getNote()); |
