From 8f102475851ea3838eb83053e3b9d6fd5f66d46e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 29 Mar 2024 12:23:27 +0100 Subject: [PATCH] [BUG] Fix Ctrl+Enter on editor (followup) s/$editContentZone/editContentZone/ because the variable was renamed by Remove jQuery `.attr` from the code comments (#30112) --- web_src/js/features/repo-legacy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index ee82b5e4b..2f5514a28 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -477,8 +477,8 @@ async function onEditContent(event) { e.preventDefault(); saveAndRefresh(dz); }); - $editContentZone.on('ce-quick-submit', () => { - $editContentZone.find('.save.button').trigger('click'); + editContentZone.on('ce-quick-submit', () => { + editContentZone.find('.save.button').trigger('click'); }); } else { comboMarkdownEditor = getComboMarkdownEditor(editContentZone.querySelector('.combo-markdown-editor'));