summaryrefslogtreecommitdiff
path: root/fanchart.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 /fanchart.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 'fanchart.php')
-rw-r--r--fanchart.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/fanchart.php b/fanchart.php
index a7760051e3..344497f8c2 100644
--- a/fanchart.php
+++ b/fanchart.php
@@ -35,7 +35,8 @@ if (WT_Filter::getBool('img')) {
$controller
->pageHeader()
- ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js');
+ ->addExternalJavascript(WT_STATIC_URL . 'js/autocomplete.js')
+ ->addInlineJavascript('autocomplete();');
?>
<div id="page-fan">
@@ -48,7 +49,7 @@ $controller
<?php echo WT_I18N::translate('Individual'); ?>
</td>
<td class="optionbox">
- <input class="pedigree_form" type="text" name="rootid" id="rootid" size="3" value="<?php echo $controller->rootid; ?>">
+ <input class="pedigree_form" data-autocomplete-type="INDI" type="text" name="rootid" id="rootid" size="3" value="<?php echo $controller->rootid; ?>">
<?php echo print_findindi_link('rootid'); ?>
</td>
<td class="descriptionbox">