mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 2610, remember admin gnb status
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12057 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3b9e23d2c7
commit
6cc97d65c2
1 changed files with 14 additions and 0 deletions
|
|
@ -133,8 +133,22 @@ jQuery(function($){
|
|||
$(this).parent('.gnb').toggleClass('open');
|
||||
$xBody.toggleClass('wide');
|
||||
reflow();
|
||||
|
||||
// remember status
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + 60*60*24*356);
|
||||
if($(this).parent('.gnb').hasClass('open')){
|
||||
setCookie('__xe_admin_gnb_status', 'open', d);
|
||||
}else{
|
||||
setCookie('__xe_admin_gnb_status', 'close', d);
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
if(getCookie('__xe_admin_gnb_status') == 'open'){
|
||||
$xGnb.find('>a[href="#gnbNav"]').trigger('click');
|
||||
}
|
||||
|
||||
// GNB Close
|
||||
$xGnb
|
||||
.prepend('<button type="button" class="close before" />')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue