From d2821ba6bccd8b30f2f583f3683f15169a369fda 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 --- 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 a909a93..e1ff9c5 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.1.4