replace andSelf()

This commit is contained in:
lansi951 2014-08-26 16:41:39 +09:00 committed by bnu
parent 3bbd4b15f4
commit 727682fdde

View file

@ -336,7 +336,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');