summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/multi-image.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/multi-image.js b/js/multi-image.js
index 77c3f766..db4c6bd2 100644
--- a/js/multi-image.js
+++ b/js/multi-image.js
@@ -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)+'">';
$('[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"]'));
}
})