From 459807184706269dd05a19a93c29137c0811ed3c Mon Sep 17 00:00:00 2001 From: flyskyko Date: Wed, 30 Jan 2013 07:36:43 +0000 Subject: [PATCH] issue 2853, fixed a bug. open PC list on download new layout and skin when mobile tab is opened. git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12616 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/menu/tpl/sitemap.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index 6e6d203c4..c38b495eb 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -2316,8 +2316,9 @@ jQuery(function($){ //index.php?act=getAutoinstallAdminMenuPackageList $('#layout').nextAll().hide(); - - drawDownloadableList('downloadLayout'); + + var sMode = $._xeAdminVar.htPrevSetting.bMobilePreviewTabOpen?"M":"P"; + drawDownloadableList('downloadLayout', { 'type': sMode}); }); $('#downloadSkin').bind("show", function(ev){ @@ -2328,16 +2329,19 @@ jQuery(function($){ //index.php?act=getAutoinstallAdminMenuPackageList $('#skin').nextAll().hide(); + var sMode = $._xeAdminVar.htPrevSetting.bMobilePreviewTabOpen?"M":"P"; drawDownloadableList('downloadSkin', { - parent_program : htNodeInfo[$._xeAdminVar.sSelectedMenuSrl].sModuleType + parent_program : htNodeInfo[$._xeAdminVar.sSelectedMenuSrl].sModuleType, + type: sMode }); drawDownloadableList('downloadSkin', { - parent_program : $._xeAdminVar.htSelectedMenuDesign.sModuleName + parent_program : $._xeAdminVar.htSelectedMenuDesign.sModuleName, + type: sMode }); });