diff --git a/js/multi-image.js b/js/multi-image.js
index 32d1f256..77c3f766 100644
--- a/js/multi-image.js
+++ b/js/multi-image.js
@@ -18,7 +18,10 @@ function multi_image() {
var images_len = $('form:not([id="quick-reply"]) [type=file]').length;
if (!(images_len >= max_images)) {
- $('.add_image').after('
');
+ var new_file = '
';
+
+ $('[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"]'));
}
})