This commit is contained in:
Nicolas Stepien 2012-04-30 05:02:00 +02:00
parent 425b95a1e2
commit 7b6cedd005
2 changed files with 2 additions and 2 deletions

View File

@ -1836,7 +1836,7 @@
});
ta.style.cssText = $.get('QR.size', '');
}
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+) /)[1].toLowerCase().replace(/\w+/g, function(type) {
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
switch (type) {
case 'jpg':
return 'image/jpeg';

View File

@ -1403,7 +1403,7 @@ QR =
ta.style.cssText = $.get 'QR.size', ''
# Allow only this board's supported files.
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+) /)[1].toLowerCase().replace /\w+/g, (type) ->
mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) ->
switch type
when 'jpg'
'image/jpeg'