diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-03 23:31:53 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-03 23:31:53 +0300 |
commit | dab08be606878139ce3fe3d8e197ef73badf8e88 (patch) | |
tree | 7693b5595ed61943879eec4bb4ee71dff75af3c0 /app/assets/javascripts/shortcuts_issuable.js | |
parent | db271a6b051f9630d5dfb3acbbd78f150cb3f23f (diff) |
Resolve "Specific Async Script Loading by using a Page Variable"
Diffstat (limited to 'app/assets/javascripts/shortcuts_issuable.js')
-rw-r--r-- | app/assets/javascripts/shortcuts_issuable.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/shortcuts_issuable.js b/app/assets/javascripts/shortcuts_issuable.js index 51448252c0f..0be141eb5f9 100644 --- a/app/assets/javascripts/shortcuts_issuable.js +++ b/app/assets/javascripts/shortcuts_issuable.js @@ -3,6 +3,7 @@ /* global ShortcutsNavigation */ /* global sidebar */ +import _ from 'underscore'; import 'mousetrap'; import './shortcuts_navigation'; @@ -58,7 +59,7 @@ import './shortcuts_navigation'; }); // If replyField already has some content, add a newline before our quote separator = replyField.val().trim() !== "" && "\n\n" || ''; - replyField.val(function(_, current) { + replyField.val(function(a, current) { return current + separator + quote.join('') + "\n"; }); |