mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
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:
parent
6cc97d65c2
commit
6065b95b92
2 changed files with 15 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue