From 1a41e5ef14c9b706ddad3afaddcc6a5f5242ba35 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 26 Jun 2018 13:40:22 +0000 Subject: [PATCH] Bug 20969: (follow-up) Move focus to textarea whe modal is shown This follow-up adds code to move the mouse cursor to the modal window's textarea when the modal is displayed. To test, apply the patch and test the process of adding/editing notes on an order. Confirm that the focus moves to the textarea when the note editor modal window is shown. Signed-off-by: Katrin Fischer Signed-off-by: Charles Farmer Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index a909a938bf..e1ff9c5cbe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -766,6 +766,7 @@ $("#ordernotes").html( note_text ); $("#type").val( note_type ); $("#noteEditor").modal("show"); + $("#ordernotes").focus(); }); $("#noteEditor").on('hidden.bs.modal', function (e) { -- 2.39.5