Bug 27436: Set focus on first input when adding a new SQL report

When adding a new SQL report, the focus/cursor should be
in the first input field of the form: Report name

To test:
* Add a new SQL report in reports > new from SQL
  - cursur is in no field
* Apply patch
* Add another new SQL report
  - cursor is now in the first input field of the form: Report name

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Katrin Fischer 2022-08-18 22:06:41 +02:00 committed by Tomas Cohen Arazi
parent 392ee0ff81
commit cc0efad411
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 1 additions and 1 deletions

View File

@ -1208,7 +1208,7 @@
[% IF ( reportname ) %]
<input type="text" class="required" required="required" id="reportname" name="reportname" value="[% reportname | html %]" size="50"/>
[% ELSE %]
<input type="text" class="required" required="required" id="reportname" name="reportname" size="50" />
<input type="text" class="required focus" required="required" id="reportname" name="reportname" size="50" />
[% END %]
<span class="required">Required</span>
</li>