From 9967ac800fe8cae7f2f51993dc1cf2a25a39ed3c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 11 Apr 2017 11:22:13 -0400 Subject: [PATCH] Bug 18415 - Advanced Editor - Rancor - return focus to editor after successful macro After running a macro we should return focus to the editor screen so editing can continue from keyboard To test: 1 - Create a macro 007=vd cvaizq 2 - Run it and note focus is not on editor 3 - Apply patch 4 - Reload page 5 - Run macro 6 - Note focus is returned to editor Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 4259ae2836822cfa656500be75c3fec770ef9788) Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 0e4c279c66..5988338b2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -944,6 +944,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr if ( !result.errors.length ) { $('#macro-ui').modal('hide'); + editor.focus(); //Return cursor to editor after macro run return false; } -- 2.39.5