fix not hiding main tab content

This commit is contained in:
Pavel Makhov 2020-12-23 22:50:27 -05:00
parent 09c2ba083b
commit 470e95ced9
1 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,9 @@ $(document).ready(function(){
location.hash = event.target.hash;
//get displaying tab content jQuery selector
let active_tab_selector = $('li.tab.col.s2.active > a.tab').attr('href');
let active_tab_selector
active_tab_selector = location.hash === '#tabMain' ? '#tabMain' : $('li.tab.col.s2.active > a.tab').attr('href');
//find actived navigation and remove 'active' css
let actived_nav = $('li.active');