summaryrefslogtreecommitdiff
path: root/ancestry.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2012-01-17 11:10:55 +0000
committerfisharebest <fisharebest@gmail.com>2012-01-17 11:10:55 +0000
commitf357468b3af7e21c78847f6f0d1965d8762c7ab3 (patch)
tree7d2393ba7b0e319d470c46bb3e4745186a9d16b1 /ancestry.php
parent5ffb619b35136eac5a16055d81385b649da54301 (diff)
downloadwebtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.tar.gz
webtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.tar.bz2
webtrees-f357468b3af7e21c78847f6f0d1965d8762c7ab3.zip
Consistent layout for chart header forms
Diffstat (limited to 'ancestry.php')
-rw-r--r--ancestry.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/ancestry.php b/ancestry.php
index 737093dd35..e59e083e7e 100644
--- a/ancestry.php
+++ b/ancestry.php
@@ -43,7 +43,9 @@ $nonfamfacts[] = 'UID';
$nonfamfacts[] = '';
$controller=new WT_Controller_Ancestry();
-$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';
@@ -54,8 +56,6 @@ if (WT_USE_LIGHTBOX) {
echo '<table><tr><td valign="middle">';
echo '<h2>', $controller->getPageTitle(), '</h2>';
-// -- print the form to change the number of displayed generations
-echo WT_JS_START, 'var pastefield; function paste_id(value) {pastefield.value=value;}', WT_JS_END;
?>
</td><td width="50px">&nbsp;</td><td><form name="people" id="people" method="get" action="?">
<input type="hidden" name="ged" value="<?php echo WT_GEDCOM; ?>">