This commit is contained in:
Nicolas Stepien 2012-02-21 02:32:41 +01:00
parent f01ae0a9db
commit 84cf869181
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1,6 +1,7 @@
master
- Mayhem
Fix posting on Safari.
Fix rare case where the QR would not accept images.
2.26.4
- Mayhem

View File

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