summaryrefslogtreecommitdiffstats
path: root/public/javascripts/attachments.js
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-26 07:27:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-26 07:27:30 +0000
commitb9fa262165601a3b348d22ca1d8da53bda99e55b (patch)
tree21bd632e051addfee01ab7a568b01f5b6428051a /public/javascripts/attachments.js
parentc171797673f549e434dd6b94f7262fd31a77b533 (diff)
downloadredmine-b9fa262165601a3b348d22ca1d8da53bda99e55b.tar.gz
redmine-b9fa262165601a3b348d22ca1d8da53bda99e55b.zip
Adds preview option to the wiki toolbar (#27758).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17521 e93f8b46-1217-0410-a6f0-8f06a7374b81
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