mirror of
https://github.com/myvesta/vesta
synced 2025-07-07 21:41:51 -07:00
Save active tab in cookie in order to restore after page refresh
This commit is contained in:
parent
0f2c093148
commit
f651c68a6a
9 changed files with 99 additions and 65 deletions
|
@ -8,6 +8,10 @@ App.Pages.init = function(){
|
|||
|
||||
$('.section.active').removeClass('active');
|
||||
$('#'+App.Env.world).addClass('active');
|
||||
|
||||
if (cookieEnabled()) {
|
||||
setCookie('tab', App.Env.world);
|
||||
}
|
||||
}
|
||||
|
||||
App.Pages.prepareHTML = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue