Fix mimetypes on certain boards (/w/).

This commit is contained in:
ahodesuka 2012-05-07 00:38:49 -05:00
parent cc72a0fdfa
commit 9c6c8f20bb
2 changed files with 2 additions and 2 deletions

View File

@ -1854,7 +1854,7 @@
return "image/" + type;
}
});
QR.mimeTypes = mimeTypes.split(', ');
QR.mimeTypes = mimeTypes.replace(/\s+/g, '').split(',');
QR.mimeTypes.push('');
fileInput = $('[type=file]', QR.el);
fileInput.max = $('[name=MAX_FILE_SIZE]').value;

View File

@ -1415,7 +1415,7 @@ QR =
'application/pdf'
else
"image/#{type}"
QR.mimeTypes = mimeTypes.split ', '
QR.mimeTypes = mimeTypes.replace(/\s+/g, '').split ','
# Add empty mimeType to avoid errors with URLs selected in Window's file dialog.
QR.mimeTypes.push ''
fileInput = $ '[type=file]', QR.el