diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index d7b9f8583..f78951caf 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -9,7 +9,14 @@

{$XE_VALIDATOR_MESSAGE}

+ +
+ + +
+ +

사이트맵

@@ -439,7 +446,7 @@
    -
다른 스킨 설치 @@ -489,6 +473,15 @@
+
+
+

스킨 설정

+
+
+
+
+ +

다른 스킨 설치

@@ -943,7 +936,10 @@ function createTreeMarkup(aNode, sParentSrl, sMenuTree, sMenuTreeNode){ htNodeInfo[sNodeSrl].nNodeType = nNodeType; htNodeInfo[sNodeSrl].sNodeSrl = sNodeSrl; htNodeInfo[sNodeSrl].sText = sText; - htNodeInfo[sNodeSrl].sModuleType = sModuleType || "_SHORTCUT"; + + if(nNodeType === 2){ + htNodeInfo[sNodeSrl].sModuleType = sModuleType || "_SHORTCUT"; + } sSubTree = ""; if(aSubNode && aSubNode.length>0){ @@ -959,7 +955,7 @@ function createTreeMarkup(aNode, sParentSrl, sMenuTree, sMenuTreeNode){ if(sIsStartModule){ sTextWithIcons += " ${h}"; } - if(!htNodeInfo[sNodeSrl].module && nNodeType === 2){ + if(htNodeInfo[sNodeSrl].sModuleType === "_SHORTCUT"){ sTextWithIcons += " ${s}"; } @@ -2309,6 +2305,8 @@ jQuery(function($){ }).data('SkinName', "")); for(var sName in htData.skin_info_list){ + if(!htData.skin_info_list.hasOwnProperty(sName)) continue; + htInfo = htData.skin_info_list[sName]; //for(var i=0, nLen=htData.skin_info_list.length; i]*>/)); + //htData.html = htData.html.replace(/]*><\/script>/, ""); + $('#layoutSetup').find('._contents').html(htData.html); + + var $configForm = $('#config_form'); + $configForm.on('submit', function(ev){ + var htData = {}; + var sKey, sValue; + $(this).find('input').each(function(){ + sKey = $(this).attr('name'); + sValue = $(this).val(); + htData[sKey] = sValue; + }); + console.log(htData); + ev.preventDefault(); + + var sUrl = $('#config_form').attr('action'); + $.post( sUrl, htData, + function( strRes ) { + var htData = $.parseJSON(strRes); + + if(htData.error !== 0){ + alert(htData.message); + return; + } + + $('#layout').show(); + //console.log(999, strRes, htData); + } + ); + }) + + scrollToRight(); + }); + }) /*