Issue 2385: Admin UI Refactoring - Advanced - Widgets

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11701 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-10-15 07:01:36 +00:00
parent 8100737bc3
commit 539e67f644
7 changed files with 83 additions and 1321 deletions

View file

@ -13,9 +13,9 @@ jQuery(function($){
var focusable = 'a,input,button,textarea,select';
$target.toggle();
if($target.is(':visible') && !$target.find(focusable).length){
$target.attr('tabindex','0').focus();
$target.attr('tabindex','0').not(':disabled').focus();
} else if($target.is(':visible') && $target.find(focusable).length) {
$target.find(focusable).eq(0).focus();
$target.find(focusable).not(':disabled').eq(0).focus();
} else {
$this.focus();
}
@ -1079,7 +1079,7 @@ $('.filebox')
});
// text click
$('#lang_search').find('[href^="#lang-"]').append('<i class="x_icon-chevron-down"></i>').click(function(){
$('#lang_search').find('.set').append('<i class="x_icon-chevron-down"></i>').click(function(){
var $this = $(this);
var lang_code = $this.data('lang_code');
@ -1091,16 +1091,16 @@ $('.filebox')
if($this.next('fieldset').is(':visible')){
$this.children('i').removeClass(up).addClass(down);
}else{
$this.children('i').removeClass(down).addClass(up);
$this.parent('.item').siblings('.item').find('a > i').removeClass(up).addClass(down).end().children('fieldset').hide();
$this.children('i').removeClass(down).addClass(up);
}
if($this.data('is_loaded')) return;
if(typeof $this.data('is_loaded') != 'undefined') return;
$.exec_json('module.getModuleAdminLangCode', {'name': lang_code}, on_complete);
function on_complete(data){
var $textareas = $($this.attr('href') + ' textarea');
var $textareas = $this.next('fieldset').find('textarea');
$textareas.each(function(){
var $this = $(this);
@ -1116,6 +1116,8 @@ $('.filebox')
$this.data('is_loaded', true);
}
});
if(name){

File diff suppressed because it is too large Load diff