Don't change tabs based on cookie if GET param is set.
Fixes bug 1037782. Change-Id: Ib32a8be2259d4fc23998a67dbb4ac0e2fb81e384
This commit is contained in:
parent
312348e0e5
commit
c00496e1d1
@ -36,7 +36,8 @@ horizon.addInitFunction(function () {
|
||||
var $this = $(this),
|
||||
id = $this.attr("id"),
|
||||
active_tab = data[id];
|
||||
if (active_tab) {
|
||||
// Set the tab from memory if we have a "sticky" tab and the tab wasn't explicitly requested via GET.
|
||||
if (active_tab && window.location.search.indexOf("tab=") < 0) {
|
||||
$this.find("a[data-target='" + active_tab + "']").tab('show');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user