mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-03-03 08:46:09 +01:00
Fix multi image from quick reply
This commit is contained in:
parent
695a8a3aaf
commit
f16f88966c
@ -18,7 +18,10 @@ function multi_image() {
|
|||||||
var images_len = $('form:not([id="quick-reply"]) [type=file]').length;
|
var images_len = $('form:not([id="quick-reply"]) [type=file]').length;
|
||||||
|
|
||||||
if (!(images_len >= max_images)) {
|
if (!(images_len >= max_images)) {
|
||||||
$('[type=file]:last').after('<br class="file_separator"/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">');
|
var new_file = '<br class="file_separator"/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">';
|
||||||
|
|
||||||
|
$('[type=file]:last').after(new_file);
|
||||||
|
$('form:not([id="quick-reply"]) [type=file]:last').after(new_file);
|
||||||
if (typeof setup_form !== 'undefined') setup_form($('form[name="post"]'));
|
if (typeof setup_form !== 'undefined') setup_form($('form[name="post"]'));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user