Skip to content
Snippets Groups Projects
Commit 7347d914 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Ignore hash as a record tab if its length is <= 1

parent 78205f99
Branches
Tags
No related merge requests found
......@@ -258,10 +258,10 @@ function applyRecordTabHash() {
var newTab = typeof window.location.hash !== 'undefined'
? window.location.hash.toLowerCase() : '';
// Open tag in url hash
if (newTab.length === 0 || newTab === '#tabnav') {
// Open tab in url hash
if (newTab.length <= 1 || newTab === '#tabnav') {
$initiallyActiveTab.click();
} else if (newTab.length > 0 && '#' + activeTab !== newTab) {
} else if (newTab.length > 1 && '#' + activeTab !== newTab) {
$('.' + newTab.substr(1)).click();
}
}
......
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