diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-08-25 11:14:00 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-09-01 09:33:39 +0100 |
| commit | d4786c66945cca20d5ce34ac3cf08cf5a5110ae2 (patch) | |
| tree | 769b1dbea67a13bf1d61d9e048d7bfb41eb21d56 /resources/views/modules/statistics-chart | |
| parent | d9af609b824a9a4d1118d9b78442b905066b46ee (diff) | |
| download | webtrees-d4786c66945cca20d5ce34ac3cf08cf5a5110ae2.tar.gz webtrees-d4786c66945cca20d5ce34ac3cf08cf5a5110ae2.tar.bz2 webtrees-d4786c66945cca20d5ce34ac3cf08cf5a5110ae2.zip | |
Use wt- namespace for data attributes
Diffstat (limited to 'resources/views/modules/statistics-chart')
| -rw-r--r-- | resources/views/modules/statistics-chart/custom.phtml | 2 | ||||
| -rw-r--r-- | resources/views/modules/statistics-chart/page.phtml | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/resources/views/modules/statistics-chart/custom.phtml b/resources/views/modules/statistics-chart/custom.phtml index bcaab5a9d9..30c2345eaf 100644 --- a/resources/views/modules/statistics-chart/custom.phtml +++ b/resources/views/modules/statistics-chart/custom.phtml @@ -166,7 +166,7 @@ use Fisharebest\Webtrees\View; <div id="surname_opt" class="form-group" style="display:none;"> <label for="SURN"><?= I18N::translate('Surname') ?></label> - <input data-autocomplete-url="<?= e(route(AutoCompleteSurname::class, ['tree' => $tree->name()])) ?>" autocomplete="off" class="form-control" type="text" id="SURN" name="SURN"> + <input data-wt-autocomplete-url="<?= e(route(AutoCompleteSurname::class, ['tree' => $tree->name()])) ?>" autocomplete="off" class="form-control" type="text" id="SURN" name="SURN"> </div> </fieldset> diff --git a/resources/views/modules/statistics-chart/page.phtml b/resources/views/modules/statistics-chart/page.phtml index 80255ead1a..b55d974186 100644 --- a/resources/views/modules/statistics-chart/page.phtml +++ b/resources/views/modules/statistics-chart/page.phtml @@ -19,7 +19,7 @@ use Fisharebest\Webtrees\View; <ul class="nav nav-tabs" role="tablist"> <?php foreach ($tabs as $label => $url) : ?> <li class="nav-item" role="presentation"> - <a class="nav-link" href="#tab-<?= e(md5($url)) ?>" data-bs-toggle="tab" data-href="<?= e($url) ?>" role="tab"> + <a class="nav-link" href="#tab-<?= e(md5($url)) ?>" data-bs-toggle="tab" data-wt-href="<?= e($url) ?>" role="tab"> <?= $label ?> </a> </li> @@ -38,8 +38,8 @@ use Fisharebest\Webtrees\View; "use strict"; // Bootstrap tabs - load content dynamically using AJAX - $('a[data-bs-toggle="tab"][data-href]').on('show.bs.tab', function () { - $(this.getAttribute('href') + ':empty').load($(this).data('href')); + $('a[data-bs-toggle="tab"][data-wt-href]').on('show.bs.tab', function () { + $(this.getAttribute('href') + ':empty').load(this.dataset.wtHref); }); // If the URL contains a fragment, then activate the corresponding tab. |
