summaryrefslogtreecommitdiff
path: root/resources/views/modules/statistics-chart
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-06 04:13:44 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-06 04:13:44 +0000
commit070932ce7052c1be0759749306de75401a6337e2 (patch)
treec2f00578fa8764b9403e506f4cdd4ca994d254e5 /resources/views/modules/statistics-chart
parent5bfba019aa45821d56f3a35ba6a890f0a6e8fe10 (diff)
downloadwebtrees-070932ce7052c1be0759749306de75401a6337e2.tar.gz
webtrees-070932ce7052c1be0759749306de75401a6337e2.tar.bz2
webtrees-070932ce7052c1be0759749306de75401a6337e2.zip
Copying to clipboard unreliable
Diffstat (limited to 'resources/views/modules/statistics-chart')
-rw-r--r--resources/views/modules/statistics-chart/page.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/modules/statistics-chart/page.phtml b/resources/views/modules/statistics-chart/page.phtml
index 6e06798d85..7f8775b966 100644
--- a/resources/views/modules/statistics-chart/page.phtml
+++ b/resources/views/modules/statistics-chart/page.phtml
@@ -33,7 +33,7 @@
// If the URL contains a fragment, then activate the corresponding tab.
// Use a prefix on the fragment, to prevent scrolling to the element.
- var target = window.location.hash.replace("tab-", "");
+ var target = document.location.hash.replace("tab-", "");
var tab = $("#statistics-tabs .nav-link[href='" + target + "']");
// If not, then activate the first tab.
if (tab.length === 0) {
@@ -43,7 +43,7 @@
// If the user selects a tab, update the URL to reflect this
$('#statistics-tabs a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
- window.location.hash = "tab-" + e.target.href.substring(e.target.href.indexOf('#') + 1);
+ document.location.hash = "tab-" + e.target.href.substring(e.target.href.indexOf('#') + 1);
});
</script>
<?php View::endpush() ?>