merge QR.accept into QR.file

This commit is contained in:
James Campos 2011-09-03 22:34:32 -07:00
parent 1fbc04b34b
commit 49d32b3d41
2 changed files with 2 additions and 4 deletions

View File

@ -1251,10 +1251,9 @@
return 'image/' + type;
}
});
QR.accept = "'" + accept + "'";
QR.file = "<input type=file name=upfile accept='" + accept + "'>";
QR.MAX_FILE_SIZE = $('input[name=MAX_FILE_SIZE]').value;
QR.spoiler = $('.postarea label') ? ' <label>[<input type=checkbox name=spoiler>Spoiler Image?]</label>' : '';
QR.file = "<input type=file name=upfile accept=" + QR.accept + ">";
if (conf['Persistent QR']) {
QR.dialog();
if (conf['Auto Hide QR']) {

View File

@ -984,10 +984,9 @@ QR =
'application/' + type
else
'image/' + type
QR.accept = "'#{accept}'"
QR.file = "<input type=file name=upfile accept='#{accept}'>"
QR.MAX_FILE_SIZE = $('input[name=MAX_FILE_SIZE]').value
QR.spoiler = if $('.postarea label') then ' <label>[<input type=checkbox name=spoiler>Spoiler Image?]</label>' else ''
QR.file = "<input type=file name=upfile accept=#{QR.accept}>"
if conf['Persistent QR']
QR.dialog()
if conf['Auto Hide QR']