diff options
Diffstat (limited to 'resources/views/modules/census-assistant.phtml')
| -rw-r--r-- | resources/views/modules/census-assistant.phtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/modules/census-assistant.phtml b/resources/views/modules/census-assistant.phtml index 9aa70dbb20..2eee2aafe3 100644 --- a/resources/views/modules/census-assistant.phtml +++ b/resources/views/modules/census-assistant.phtml @@ -105,7 +105,7 @@ document.querySelector('#census-assistant-class').value = census; document.querySelector('#census-assistant-title').value = censusYear + ' ' + censusPlace + ' - <?= I18N::translate('Census transcript') ?> - <?= strip_tags($individual->getFullName()) ?> - <?= I18N::translate('Household') ?>'; - fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusHeader', 'ged' => $individual->getTree()->getName()]) ?>&census=' + census) + fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusHeader', 'ged' => $individual->getTree()->name()]) ?>&census=' + census) .then(function (response) { return response.text(); }) @@ -135,7 +135,7 @@ var headTd = document.querySelector('#census-assistant-table td'); var head = headTd === null ? xref : headTd.innerHTML; - fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusIndividual', 'ged' => $individual->getTree()->getName()]) ?>&census=' + encodeURIComponent(census) + '&xref=' + encodeURIComponent(xref) + '&head=' + encodeURIComponent(head), {credentials: 'same-origin'}) + fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusIndividual', 'ged' => $individual->getTree()->name()]) ?>&census=' + encodeURIComponent(census) + '&xref=' + encodeURIComponent(xref) + '&head=' + encodeURIComponent(head), {credentials: 'same-origin'}) .then(function (response) { return response.text(); }) @@ -153,7 +153,7 @@ var indi_selector = document.querySelector('#census-assistant-individual'); var xref = indi_selector.options[indi_selector.selectedIndex].value; - fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusIndividual', 'ged' => $individual->getTree()->getName()]) ?>&census=' + encodeURIComponent(census) + '&xref=' + encodeURIComponent(xref) + '&head=' + encodeURIComponent(xref), {credentials: 'same-origin'}) + fetch('<?= route('module', ['module' => 'GEDFact_assistant', 'action' => 'CensusIndividual', 'ged' => $individual->getTree()->name()]) ?>&census=' + encodeURIComponent(census) + '&xref=' + encodeURIComponent(xref) + '&head=' + encodeURIComponent(xref), {credentials: 'same-origin'}) .then(function (response) { return response.text(); }) |
