fixed a bug that does not work tabbable

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11709 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-15 09:16:20 +00:00
parent 9fd184270f
commit 79a71dbfd5
2 changed files with 61 additions and 1332 deletions

View file

@ -34,16 +34,20 @@ jQuery(function($){
return false; return false;
}); });
// Tab Navigation // Tab Navigation
$('.x .x_tabbable').each(function(){ $.fn.xeTabbable = function(){
var $this = $(this); $(this).each(function(){
$this.find('>.x_nav-tabs>li>a').each(function(index){ var $this = $(this);
$(this).attr('data-index', index+1); $this.find('>.x_nav-tabs>li>a').each(function(index){
$(this).attr('data-index', index+1);
});
$this.find('>.x_tab-content>.x_tab-pane').each(function(index){
$(this).attr('data-index', index+1);
});
}); });
$this.find('>.x_tab-content>.x_tab-pane').each(function(index){ $('.x .x_tab-content>.x_tab-pane:not(".x_active")').hide();
$(this).attr('data-index', index+1); }
}); $('.x .x_tabbable').xeTabbable();
});
$('.x .x_tab-content>.x_tab-pane:not(".x_active")').hide();
$(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);
$this.parent('li').addClass('x_active').siblings().removeClass('x_active'); $this.parent('li').addClass('x_active').siblings().removeClass('x_active');
@ -1022,6 +1026,9 @@ $('.filebox')
var $g11n_search = $g11n_get.find('#lang_search'); // search section var $g11n_search = $g11n_get.find('#lang_search'); // search section
var is_create_changed = false; var is_create_changed = false;
// tabbable
$g11n_get.find('.x_tabbable').xeTabbable();
// check create change // check create change
$g11n_create.find('.editMode textarea').change(function(){ $g11n_create.find('.editMode textarea').change(function(){
is_create_changed = true; is_create_changed = true;

File diff suppressed because it is too large Load diff