If the module no use mobile, diable mobile tab on design setting

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12058 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-11-03 07:29:42 +00:00
parent 6cc97d65c2
commit 6065b95b92
2 changed files with 15 additions and 0 deletions

View file

@ -2250,6 +2250,8 @@ jQuery(function($){
$('#design').bind('show', function(ev){
if(this !== ev.target) return;
$('#design .x_tabbable a[href="#mobile"]').parent().addClass('x_disabled');
var sMenuId = $._xeAdminVar.sSelectedMenuSrl;
var htInfo = htNodeInfo[sMenuId];
@ -2281,6 +2283,7 @@ jQuery(function($){
var htDesign = $._xeAdminVar.htSelectedMenuDesign = {
sModuleName : htTmp.module,
sMID : htTmp.mid,
sUseMobile : htTmp.use_mobile,
htLayoutSrl : {
P:htTmp.layout_srl,
M:htTmp.mlayout_srl
@ -2288,6 +2291,13 @@ jQuery(function($){
htSkin : {P: htTmp.skin, M : htTmp.mskin},
htData : {}
};
// If no use mobile, diabled mobile tab
if(htDesign.sUseMobile != 'Y'){
$('#design .x_tabbable a[href="#mobile"]').parent().addClass('x_disabled');
}else{
$('#design .x_tabbable a[href="#mobile"]').parent().removeClass('x_disabled');
}
$('#design .x_tabbable a[href="#pc"]').click();
});