From 8ba792c56d5c58fc7400dd4cb61c855913afb036 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 18 Oct 2016 13:34:10 -0400 Subject: [PATCH] Moved function for style compliance. --- themes/bootstrap3/js/record.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js index 6d51bc0476f..0d986575859 100644 --- a/themes/bootstrap3/js/record.js +++ b/themes/bootstrap3/js/record.js @@ -152,6 +152,15 @@ function registerTabEvents() { VuFind.lightbox.bind('.tab-pane.active'); } +function removeHashFromLocation() { + if (window.history.replaceState) { + var href = window.location.href.split('#'); + window.history.replaceState({}, document.title, href[0]); + } else { + window.location.hash = '#'; + } +} + function ajaxLoadTab($newTab, tabid, setHash) { // Parse out the base URL for the current record: var urlParts = document.URL.split(/[?#]/); @@ -266,15 +275,6 @@ function applyRecordTabHash() { } } -function removeHashFromLocation() { - if (window.history.replaceState) { - var href = window.location.href.split('#'); - window.history.replaceState({}, document.title, href[0]); - } else { - window.location.hash = '#'; - } -} - $(window).on('hashchange', applyRecordTabHash); function recordDocReady() { -- GitLab