#19242289 FF에서 발생하는 파일 첨부 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7806 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-11-05 06:16:11 +00:00
parent 6189a3aba1
commit 529d753ece

View file

@ -275,10 +275,9 @@ runtimes.html5 = {
// when file is selected
function onselect() {
var files = $.grep(this.files, function(file) {
var ext = (file.fileName.match(/\.([^\.]+)$/)[1] || '').toLowerCase();
return ($.inArray(ext,filter) != -1);
return (!filter.length || $.inArray(ext,filter) != -1);
});
if (files.length) {