mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
smartphone 애드온의 접근 권한 오류 출력 및 스마트폰 네비게이션 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6406 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cdeb3f36cc
commit
e57019217f
3 changed files with 65 additions and 49 deletions
|
|
@ -1,4 +1,5 @@
|
|||
var xeSmartMenu = null;
|
||||
var xeSmartUpperMenu = null;
|
||||
function showXEMenu() {
|
||||
if(!xeSmartMenu) {
|
||||
|
||||
|
|
@ -40,9 +41,12 @@ function showXEMenu() {
|
|||
}
|
||||
|
||||
if(xeSmartMenu.css('display')=='none' && typeof(xeMenus)!='undefined') {
|
||||
xeSmartUpperMenu = null;
|
||||
var menu = findSmartNode(xeMenus);
|
||||
if(!menu) menu = xeMenus;
|
||||
var html = '<ul>';
|
||||
if(location.href.getQuery('mid')) html += '<li><a href="'+current_url.setQuery('mid','')+'">< go Home ></a></li>';
|
||||
if(xeSmartUpperMenu) html += '<li><a href="'+current_url.setQuery('mid',xeSmartUpperMenu.url)+'">< go Upper ></a></li>';
|
||||
for(var text in menu) {
|
||||
if(!text) continue;
|
||||
var url = menu[text].url;
|
||||
|
|
@ -77,20 +81,21 @@ function showXEMenu() {
|
|||
}
|
||||
|
||||
function findSmartNode(nodes) {
|
||||
if(typeof(current_mid)=='undefined') return;
|
||||
var mid = current_mid;
|
||||
if(location.href.indexOf(mid)<0&&location.href.indexOf('document_srl')<0) mid = null;
|
||||
var mid = current_url.getQuery('mid');
|
||||
if(typeof(mid)=='undefined'||!mid) return nodes;
|
||||
for(var text in nodes) {
|
||||
if(!text) continue;
|
||||
if(nodes[text].url == mid) {
|
||||
if(nodes[text].childs) return nodes[text].childs;
|
||||
}
|
||||
if(nodes[text].childs && nodes[text].childs.length) {
|
||||
if(nodes[text].childs) {
|
||||
var n = findSmartNode(nodes[text].childs);
|
||||
if(n) return n;
|
||||
if(n) {
|
||||
xeSmartUpperMenu = nodes[text];
|
||||
return n;
|
||||
}
|
||||
}
|
||||
if(nodes[text].url == mid) {
|
||||
if(nodes[text].childs) return nodes[text].childs;
|
||||
return nodes;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if(!location.href.getQuery('mid')&&!location.href.getQuery('document_srl')) jQuery(document).ready(showXEMenu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue