From e31bf58dae4e5198cbfa59f550247e4a34774c2c Mon Sep 17 00:00:00 2001 From: James O'Keeffe Date: Tue, 19 Jan 2021 01:22:08 +0000 Subject: [PATCH] Bug 27436: Set focus for cursor to report name field when creating new SQL report This patch focuses the cursor on the 'Report name' field when creating a new SQL report Test plan: 1. Navigate to the 'Create report from SQL' page (Home -> Reports -> Guided reports Wizard -> Create from SQL) 2. Observe that the 'Report name' box is not focused on 3. Apply the patch, log in, log out. 4. Repeat step 1. The 'Report name' box should now be focused on. --- koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index c04ffef6a4..c21983f963 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1392,6 +1392,8 @@ $(document).ready(function(){ + $("#reportname").focus(); + var activeTab = localStorage.getItem("sql_reports_activetab"); $("body").on('click',".fetch_chart_data",function(){ -- 2.11.0