diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index 482183e90..0d5b18016 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -329,7 +329,7 @@
- +
@@ -1271,6 +1271,10 @@ jQuery(function($){ $('#site').scrollTo($('#site').width(), 0, {duration: 0 } ); } + function scrollToTop($Area){ + $Area.scrollTo(0, 0, {duration: 0 } ); + } + $("#site_map ._addSiteMap").click(function(){ $("#siteMapTree").jstree("deselect_all"); @@ -2189,6 +2193,7 @@ jQuery(function($){ createPagination($Panel.find('._pagination'), fnCallback, htInfo.cur_page, htInfo.total_page, "« 첫 페이지", "끝 페이지 »", "페이지 직접 이동") } + scrollToTop($Panel.find('.cnt')); scrollToRight(); }); } @@ -2530,7 +2535,7 @@ exec_xml("module","procModuleAdminSetDesignInfo", params, completeTmp) // }); $('._mobile_preview_open').click(function(ev){ - window.open($('input[name=_mobile_preview_ifr]').attr('src'), "xe_preview", "resizable=yes"); + window.open($('input[name=_mobile_preview_ifr]').attr('src'), "xe_preview", "resizable=yes,width=480,height=800"); //ev.preventDefault(); // }); @@ -2994,16 +2999,19 @@ exec_xml("module","procModuleAdminSetDesignInfo", params, completeTmp) var sSelected = ""; var sSelectedSkin = ""; var htDesign = $._xeAdminVar.htSelectedMenuDesign; - if(htDesign.htSkin[sType] == ""){ - sSelectedSkin = ""; - sSelected = "selected"; - } + /* $List.append($.tmpl("skinListItem_noskin", { Selected : sSelected }).data('SkinName', "")); + */ for(var sName in htData.skin_info_list){ if(!htData.skin_info_list.hasOwnProperty(sName)) continue; + + // if nothing is selected, select the first one. + if(htDesign.htSkin[sType] == ""){ + htDesign.htSkin[sType] = sName; + } htInfo = htData.skin_info_list[sName]; //for(var i=0, nLen=htData.skin_info_list.length; i