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

@ -85,6 +85,11 @@ jQuery(function($){
$('.x .x_tabbable').xeTabbable();
$(document.body).on('click', '.x .x_nav-tabs>li>a[href*="#"]', function(){
var $this = $(this);
if($this.parent('li').hasClass('x_disabled')){
return false;
}
$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();