diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-01-17 11:10:55 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-01-17 11:10:55 +0000 |
| commit | f357468b3af7e21c78847f6f0d1965d8762c7ab3 (patch) | |
| tree | 7d2393ba7b0e319d470c46bb3e4745186a9d16b1 /descendancy.php | |
| parent | 5ffb619b35136eac5a16055d81385b649da54301 (diff) | |
| download | webtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.tar.gz webtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.tar.bz2 webtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.zip | |
Consistent layout for chart header forms
Diffstat (limited to 'descendancy.php')
| -rw-r--r-- | descendancy.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/descendancy.php b/descendancy.php index f26d0f4575..ced62f10a7 100644 --- a/descendancy.php +++ b/descendancy.php @@ -41,22 +41,19 @@ $nonfamfacts[] = 'UID'; $nonfamfacts[] = ''; $controller=new WT_Controller_Descendancy(); -$controller->pageHeader(); +$controller + ->pageHeader() + ->addInlineJavaScript('var pastefield; function paste_id(value) { pastefield.value=value; }'); // For the "find indi" link -if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; +if ($ENABLE_AUTOCOMPLETE) { + require WT_ROOT.'js/autocomplete.js.htm'; +} -// LBox ===================================================================================== if (WT_USE_LIGHTBOX) { require WT_ROOT.WT_MODULES_DIR.'lightbox/functions/lb_call_js.php'; } -// ========================================================================================== echo '<table><tr><td valign="top"><h2>', $controller->getPageTitle(), '</h2>'; -echo WT_JS_START; -echo 'var pastefield; function paste_id(value) {pastefield.value=value;}'; -echo WT_JS_END; - -$gencount=0; echo '</td><td width="50px"> </td><td><form method="get" name="people" action="?">'; echo '<input type="hidden" name="ged" value="', WT_GEDCOM, '">'; echo '<input type="hidden" name="show_full" value="', $controller->show_full, '">'; |
