diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-12-06 21:03:08 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-12-06 21:03:08 +0000 |
| commit | db6a3ae944764c42e1f9f3c7c3d910d7e26eec94 (patch) | |
| tree | 9e638895e0c859337962c348d528df815a2b0b1d /timeline.php | |
| parent | 89f721ac3d0d9e676a980f9d1bb440fafa6b2269 (diff) | |
| download | webtrees-db6a3ae944764c42e1f9f3c7c3d910d7e26eec94.tar.gz webtrees-db6a3ae944764c42e1f9f3c7c3d910d7e26eec94.tar.bz2 webtrees-db6a3ae944764c42e1f9f3c7c3d910d7e26eec94.zip | |
Move Javascript to the views
Diffstat (limited to 'timeline.php')
| -rw-r--r-- | timeline.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/timeline.php b/timeline.php index 62b38c891a..5e601dfc0e 100644 --- a/timeline.php +++ b/timeline.php @@ -346,9 +346,7 @@ if (Filter::getBool('ajax') && Session::has('initiated')) { return; } -$controller - ->addInlineJavascript('$(".wt-page-content").load(location.search + "&ajax=1");') - ->pageHeader(); +$controller->pageHeader(); ?> <h2 class="wt-page-title"><?= $controller->getPageTitle() ?></h2> @@ -433,3 +431,8 @@ $controller </form> <div class="wt-ajax-load wt-page-content wt-chart wt-timeline-chart"></div> +<script> + document.addEventListener(DOMContentLoaded, function () { + $(".wt-page-content").load(location.search + "&ajax=1"); + }); +</script> |
