From da6ce237f40688d89b298cf829632a1286bc7db6 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:12:59 +0300 Subject: [PATCH] fix(wall): ctrl+enter didn't saved attachments --- Web/static/js/al_wall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 0ad15df7..29722564 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -461,7 +461,7 @@ u(document).on('click', '#videoOpen', (e) => { u(document).on("keydown", "#write > form", function(event) { if(event.ctrlKey && event.keyCode === 13) - this.submit(); + u(event.target).closest('form').find(`input[type='submit']`).nodes[0].click() }); u(document).on('keydown', '.edit_menu #write', (e) => {