diff --git a/themes/bootstrap3/js/record.js b/themes/bootstrap3/js/record.js index 054d170302405fa3faac11a1e89d89aefe27fd1e..f59ffe8a3d35dac18e0ae033c7cf4aec93e39b25 100644 --- a/themes/bootstrap3/js/record.js +++ b/themes/bootstrap3/js/record.js @@ -146,7 +146,7 @@ function registerTabEvents() { }); } -function ajaxLoadTab(tabid) { +function ajaxLoadTab(tabid, setHash) { // if we're flagged to skip AJAX for this tab, just return true and let the // browser handle it. if(document.getElementById(tabid).parentNode.className.indexOf('noajax') > -1) { @@ -173,7 +173,9 @@ function ajaxLoadTab(tabid) { if(typeof syn_get_widget === "function") { syn_get_widget(); } - window.location.hash = tabid; + if (typeof setHash == 'undefined' || setHash) { + window.location.hash = tabid; + } } }); return false;