Revert "Whoa, what? Fix mime-type acceptance."
Dunno why I got it wrong while testing. This reverts commit ea945cc4b7a7361dad5177572b3aee53aac2b122.
This commit is contained in:
parent
c490bc616e
commit
4041419a3d
@ -1502,7 +1502,7 @@
|
||||
$.on($('#recaptcha_challenge_field_holder'), 'DOMNodeInserted', qr.captchaNode);
|
||||
qr.captchaTime = Date.now();
|
||||
qr.spoiler = $('.postarea label') ? '<label> [<input type=checkbox name=spoiler>Spoiler Image?]</label>' : '';
|
||||
qr.acceptFiles = $('.rules').textContent.match(/: (.+)/)[1].replace(/\w+/g, function(type) {
|
||||
qr.acceptFiles = $('.rules').textContent.match(/: (.+) /)[1].replace(/\w+/g, function(type) {
|
||||
switch (type) {
|
||||
case 'JPG':
|
||||
return 'image/JPEG';
|
||||
|
||||
@ -1127,7 +1127,7 @@ qr =
|
||||
qr.captchaTime = Date.now()
|
||||
|
||||
qr.spoiler = if $('.postarea label') then '<label> [<input type=checkbox name=spoiler>Spoiler Image?]</label>' else ''
|
||||
qr.acceptFiles = $('.rules').textContent.match(/: (.+)/)[1].replace /\w+/g, (type) ->
|
||||
qr.acceptFiles = $('.rules').textContent.match(/: (.+) /)[1].replace /\w+/g, (type) ->
|
||||
switch type
|
||||
when 'JPG'
|
||||
'image/JPEG'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user