summaryrefslogtreecommitdiff
path: root/descendancy.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-06-17 16:40:03 +0100
committerGreg Roach <fisharebest@gmail.com>2014-06-17 16:40:03 +0100
commit278af5d1ace7346bd49339ef4461d324f2339967 (patch)
tree6e0f8e45d58bc502bb6363e57ebec7bf5b2ec1ee /descendancy.php
parent41529aefb463adb31b0fc88fcd97b9badb04013c (diff)
downloadwebtrees-278af5d1ace7346bd49339ef4461d324f2339967.tar.gz
webtrees-278af5d1ace7346bd49339ef4461d324f2339967.tar.bz2
webtrees-278af5d1ace7346bd49339ef4461d324f2339967.zip
Autocomplete doesn't work on pages with data from multiple trees
Diffstat (limited to 'descendancy.php')
-rw-r--r--descendancy.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/descendancy.php b/descendancy.php
index 4dbe52d6b0..89bd917679 100644
--- a/descendancy.php
+++ b/descendancy.php
@@ -29,7 +29,8 @@ require_once WT_ROOT.'includes/functions/functions_print_lists.php';
$controller=new WT_Controller_Descendancy();
$controller
->pageHeader()
- ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js');
+ ->addExternalJavascript(WT_STATIC_URL . 'js/autocomplete.js')
+ ->addInlineJavascript('autocomplete();');
?>
<div id="descendancy-page"><h2><?php echo $controller->getPageTitle(); ?></h2>
@@ -42,7 +43,7 @@ $controller
<?php echo WT_I18N::translate('Individual'); ?>
</td>
<td class="optionbox">
- <input class="pedigree_form" type="text" id="rootid" name="rootid" size="3" value="<?php echo $controller->rootid; ?>">
+ <input class="pedigree_form" data-autocomplete-type="INDI" type="text" id="rootid" name="rootid" size="3" value="<?php echo $controller->rootid; ?>">
<?php echo print_findindi_link('rootid'); ?>
</td>
<td class="descriptionbox">