Skip to content
Snippets Groups Projects
Commit a7c0b995 authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #503 from EreMaijala/ajax-load-tab

Added a parameter to ajaxLoadTab() to make the addition of hash to th…
parents 00c1b7ab 627ce820
Branches
Tags
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment