mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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
|
|
@ -85,6 +85,11 @@ jQuery(function($){
|
||||||
$('.x .x_tabbable').xeTabbable();
|
$('.x .x_tabbable').xeTabbable();
|
||||||
$(document.body).on('click', '.x .x_nav-tabs>li>a[href*="#"]', function(){
|
$(document.body).on('click', '.x .x_nav-tabs>li>a[href*="#"]', function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
|
|
||||||
|
if($this.parent('li').hasClass('x_disabled')){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$this.parent('li').addClass('x_active').siblings().removeClass('x_active');
|
$this.parent('li').addClass('x_active').siblings().removeClass('x_active');
|
||||||
$this.closest('.x_nav-tabs').next('.x_tab-content').find('>.x_tab-pane').eq($this.attr('data-index')-1).addClass('x_active').show().siblings().removeClass('x_active').hide();
|
$this.closest('.x_nav-tabs').next('.x_tab-content').find('>.x_tab-pane').eq($this.attr('data-index')-1).addClass('x_active').show().siblings().removeClass('x_active').hide();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2250,6 +2250,8 @@ jQuery(function($){
|
||||||
$('#design').bind('show', function(ev){
|
$('#design').bind('show', function(ev){
|
||||||
if(this !== ev.target) return;
|
if(this !== ev.target) return;
|
||||||
|
|
||||||
|
$('#design .x_tabbable a[href="#mobile"]').parent().addClass('x_disabled');
|
||||||
|
|
||||||
var sMenuId = $._xeAdminVar.sSelectedMenuSrl;
|
var sMenuId = $._xeAdminVar.sSelectedMenuSrl;
|
||||||
var htInfo = htNodeInfo[sMenuId];
|
var htInfo = htNodeInfo[sMenuId];
|
||||||
|
|
||||||
|
|
@ -2281,6 +2283,7 @@ jQuery(function($){
|
||||||
var htDesign = $._xeAdminVar.htSelectedMenuDesign = {
|
var htDesign = $._xeAdminVar.htSelectedMenuDesign = {
|
||||||
sModuleName : htTmp.module,
|
sModuleName : htTmp.module,
|
||||||
sMID : htTmp.mid,
|
sMID : htTmp.mid,
|
||||||
|
sUseMobile : htTmp.use_mobile,
|
||||||
htLayoutSrl : {
|
htLayoutSrl : {
|
||||||
P:htTmp.layout_srl,
|
P:htTmp.layout_srl,
|
||||||
M:htTmp.mlayout_srl
|
M:htTmp.mlayout_srl
|
||||||
|
|
@ -2289,6 +2292,13 @@ jQuery(function($){
|
||||||
htData : {}
|
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();
|
$('#design .x_tabbable a[href="#pc"]').click();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue