diff options
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r-- | app/assets/javascripts/behaviors/shortcuts/shortcuts.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/assets/javascripts/behaviors/shortcuts/shortcuts.js b/app/assets/javascripts/behaviors/shortcuts/shortcuts.js index efb462f4778..9514ad853b0 100644 --- a/app/assets/javascripts/behaviors/shortcuts/shortcuts.js +++ b/app/assets/javascripts/behaviors/shortcuts/shortcuts.js @@ -186,14 +186,6 @@ export default class Shortcuts { } static toggleMarkdownPreview(e) { - const $form = $(e.target).closest('form'); - const toggle = $('.js-md-preview-button', $form).get(0); - - if (!toggle) return; - - toggle.focus(); - toggle.click(); - $(document).triggerHandler('markdown-preview:toggle', [e]); } |