summaryrefslogtreecommitdiffstats
path: root/public/javascripts/attachments.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/attachments.js')
-rw-r--r--public/javascripts/attachments.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js
index 1baafc0bd..753855f91 100644
--- a/public/javascripts/attachments.js
+++ b/public/javascripts/attachments.js
@@ -237,8 +237,7 @@ function addInlineAttachmentMarkup(file) {
'selectionStart': cursorPosition + newLineBefore,
'selectionEnd': cursorPosition + inlineFilename.length + newLineBefore
});
- $textarea.closest('.jstEditor')
- .siblings('.jstElements')
+ $textarea.parents('.jstBlock')
.find('.jstb_img').click();
// move cursor into next line