mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
fix multi-image.js when quick-reply isn`t loaded
This commit is contained in:
parent
6c139caf3c
commit
f2e101f30d
@ -21,7 +21,9 @@ function multi_image() {
|
|||||||
var new_file = '<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);
|
$('[type=file]:last').after(new_file);
|
||||||
$('form:not([id="quick-reply"]) [type=file]:last').after(new_file);
|
if ($("#quick-reply").length) {
|
||||||
|
$('form:not(#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…
Reference in New Issue
Block a user