mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
fixed wrong focus after select imgage of filebox
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9008 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0233fa1f10
commit
597e034ca3
1 changed files with 7 additions and 5 deletions
|
|
@ -714,11 +714,12 @@ jQuery(function($){
|
||||||
|
|
||||||
$('.filebox')
|
$('.filebox')
|
||||||
.bind('before-open.mw', function(){
|
.bind('before-open.mw', function(){
|
||||||
var $list, $parentObj;
|
var $this, $list, $parentObj;
|
||||||
var key, anchor;
|
var key, anchor;
|
||||||
|
|
||||||
key = $(this).attr('filebox_key');
|
$this = $(this);
|
||||||
anchor = $(this).attr('href');
|
key = $this.attr('filebox_key');
|
||||||
|
anchor = $this.attr('href');
|
||||||
|
|
||||||
$list = $(anchor).find('.filebox_list');
|
$list = $(anchor).find('.filebox_list');
|
||||||
|
|
||||||
|
|
@ -728,8 +729,8 @@ $('.filebox')
|
||||||
$list.find('.lined .select')
|
$list.find('.lined .select')
|
||||||
.bind('click', function(event){
|
.bind('click', function(event){
|
||||||
var selectedImgSrc = $(this).parent().find('img.filebox_item').attr('src');
|
var selectedImgSrc = $(this).parent().find('img.filebox_item').attr('src');
|
||||||
$('.filebox').trigger('filebox.selected', [key, selectedImgSrc]);
|
$this.trigger('filebox.selected', [key, selectedImgSrc]);
|
||||||
$('.filebox').trigger('close.mw');
|
$this.trigger('close.mw');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -753,6 +754,7 @@ $('.filebox')
|
||||||
var page = $(this).prev('input').val();
|
var page = $(this).prev('input').val();
|
||||||
|
|
||||||
$.exec_json('module.getFileBoxListHtml', {'page': page}, on_complete);
|
$.exec_json('module.getFileBoxListHtml', {'page': page}, on_complete);
|
||||||
|
$(window).scrollTop($(anchor).find('.modalClose').offset().top);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue