1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00

Fix out of order multi image

This commit is contained in:
8chan 2014-06-17 22:59:09 +00:00
parent 39c7b92350
commit ba68c1459a

View File

@ -18,7 +18,7 @@ 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)) {
$('.add_image').after('<br class="file_separator"/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">'); $('[type=file]:last').after('<br class="file_separator"/><input type="file" name="file'+(images_len+1)+'" id="upload_file'+(images_len+1)+'">');
if (typeof setup_form !== 'undefined') setup_form($('form[name="post"]')); if (typeof setup_form !== 'undefined') setup_form($('form[name="post"]'));
} }
}) })