summaryrefslogtreecommitdiff
path: root/resources/views/modules
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules')
-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() ?>