Merge pull request #931 from lansi951/replace-andself

replace andSelf()
This commit is contained in:
bnu 2014-09-03 20:36:24 +09:00
commit 7283576eac

View file

@ -333,7 +333,7 @@ function previewFiles(event, file_srl) {
var $opt, $select, $preview, fileinfo, filename, match, html, $=jQuery;
if(!file_srl) {
$opt = $(event.target).parent().andSelf().filter('select').find('>option:selected');
$opt = $(event.target).parent().addBack().filter('select').find('>option:selected');
if(!$opt.length) return;
file_srl = $opt.attr('value');