mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
사이트 메뉴 편집 시 너무 많은 cookie를 생성하는 문제 수정
- 관리페이지의 GNB 메뉴의 열림 상태 확인을 위한 cookie 사용 개선 - 열린 상태의 쿠키만 유지하고 닫힘 상태의 cookie 제거 (open 값만 확인하므로) - 사이트 메뉴 관리의 메뉴의 열린 항목이 없을 때 cookie 제거
This commit is contained in:
parent
6d20b46fc1
commit
db91ead88a
2 changed files with 20 additions and 15 deletions
|
|
@ -981,7 +981,13 @@ function setJSTreeOpenIds(){
|
|||
jQuery("#siteMapTree").find("li.jstree-open").each(function() {
|
||||
jstree_open_srls.push(this.id);
|
||||
});
|
||||
setCookie("__xe_admin_jstree_open_srls", jstree_open_srls.join(","));
|
||||
|
||||
var cookieValue = jstree_open_srls.join(',');
|
||||
if(!cookieValue) {
|
||||
XE.cookie.remove('__xe_admin_jstree_open_srls');
|
||||
} else {
|
||||
XE.cookie.set('__xe_admin_jstree_open_srls', cookieValue);
|
||||
}
|
||||
}
|
||||
|
||||
function issetJSTreeOpenIds(id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue