From 023e7767f2f5fd00ee7309ae2819e44ecec93b00 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sun, 11 Sep 2022 15:05:32 +0200 Subject: [PATCH] Enter to send --- client/wrap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/wrap.js b/client/wrap.js index 2f4cfde..3234c84 100644 --- a/client/wrap.js +++ b/client/wrap.js @@ -150,4 +150,8 @@ $(document).ready(() => { $('select').formSelect(); $('.datepicker').datepicker({setDefaultDate: true, defaultDate: new Date()}); + + $('#weight').keypress(e => { + if (e.which == 13) { $('#send').trigger('click'); } + }); });