From f92c74b65aa57928defcd6288be12d777e4c5110 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Tue, 6 Aug 2013 14:21:10 +0200 Subject: [PATCH] Bug 7469: put focus on 1st field of creation form instead of search box (Acquisition) When a user creates a new vendor, a new borrower or a new basket (maybe on others page too, to be listed), a creation form is displayed, but the focus is still on the search textbox on page top. It would be probably better to switch the focus to the first field of the creation form. This patch adds the focus, for acquisitions module, on first input for pages with a data creation or modification or pages with only one form (like Z3950 search). Test plan : Go to pages and look where is the focus : - acqui/basketgroup.pl : focus on "Basket group name:" - acqui/basketheader.pl : focus on "Basket name:" - acqui/invoices.tt : focus on "Invoice no:" - acqui/modordernotes.pl : focus on "Notes:" - acqui/neworderempty.pl : focus on "Title:" - acqui/supplier.pl : focus on "Name:" - acqui/z3950_search.pl : focus on "Title:" Signed-off-by: Melia Meggs Signed-off-by: Jonathan Druart The focus choice is relevant and works as described. Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt index d4027a5c0a..b6cdc52c94 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt @@ -182,7 +182,7 @@ function submitForm(form) {
  1. -
  2. +
  3. +
  4. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt index 584d78785f..40114ad64f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt @@ -145,7 +145,7 @@ $(document).ready(function() {
    1. - +
    2. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt index 0961f4a3b3..6fc4867760 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt @@ -16,7 +16,7 @@
      - +
      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index da8f88adfc..c7f9be09fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -239,7 +239,7 @@ $(document).ready(function() [% title |html %] [% ELSE %] - + [% END %]
    3. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index 0dba956278..2ac576a0d4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -66,7 +66,7 @@ if (f.company.value == "") {
      Company details
      1. -
      2. +
      3. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index 2983dc3f60..e1df5150cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -90,7 +90,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
        -
        1. +
          1. -- 2.39.5