Merge pull request #12541 from sudheesh001/QA_4_6

Fixes #12470 Stores tab_id hash into a variable instead of location.hash
This commit is contained in:
Michal Čihař 2016-09-06 12:44:44 +02:00 committed by GitHub
commit 8ebc43ebc1

View File

@ -588,8 +588,9 @@ function setTab(tab_id)
}
$this.find('li').removeClass('active').find('a[href=#' + tab_id + ']').parent().addClass('active');
$this.parent().find('div.tabs_contents fieldset').hide().filter('#' + tab_id).show();
location.hash = 'tab_' + tab_id;
$this.parent().find('input[name=tab_hash]').val(location.hash);
var hashValue = 'tab_' + tab_id;
location.hash = hashValue;
$this.parent().find('input[name=tab_hash]').val(hashValue);
});
}