Fix multi image from quick reply

Conflicts:
	js/multi-image.js
This commit is contained in:
8chan 2014-09-27 00:44:41 +00:00 committed by czaks
parent d9f20c290d
commit 56f3d89774

View File

@ -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)) {
$('.add_image').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"]'));
} }
}) })