Bug 20969: (follow-up) Move focus to textarea whe modal is shown
authorOwen Leonard <oleonard@myacpl.org>
Tue, 26 Jun 2018 13:40:22 +0000 (13:40 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 12:33:41 +0000 (12:33 +0000)
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 <katrin.fischer.83@web.de>

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

index a909a93..e1ff9c5 100644 (file)
                 $("#ordernotes").html( note_text );
                 $("#type").val( note_type );
                 $("#noteEditor").modal("show");
+                $("#ordernotes").focus();
             });
 
              $("#noteEditor").on('hidden.bs.modal', function (e) {