merge QR.accept into QR.file
This commit is contained in:
parent
1fbc04b34b
commit
49d32b3d41
@ -1251,10 +1251,9 @@
|
|||||||
return 'image/' + type;
|
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.MAX_FILE_SIZE = $('input[name=MAX_FILE_SIZE]').value;
|
||||||
QR.spoiler = $('.postarea label') ? ' <label>[<input type=checkbox name=spoiler>Spoiler Image?]</label>' : '';
|
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']) {
|
if (conf['Persistent QR']) {
|
||||||
QR.dialog();
|
QR.dialog();
|
||||||
if (conf['Auto Hide QR']) {
|
if (conf['Auto Hide QR']) {
|
||||||
|
|||||||
@ -984,10 +984,9 @@ QR =
|
|||||||
'application/' + type
|
'application/' + type
|
||||||
else
|
else
|
||||||
'image/' + type
|
'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.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.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']
|
if conf['Persistent QR']
|
||||||
QR.dialog()
|
QR.dialog()
|
||||||
if conf['Auto Hide QR']
|
if conf['Auto Hide QR']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user