From 721a81726e9a72846b939fba7f0a678b1148ef76 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Sat, 7 Jun 2014 11:18:13 -0400 Subject: [PATCH] Bug 11905 - when editing item, cursor is positioning in search box and not to item cataloging-search.inc had embedded js to set focus into the search box. This patch removes that js from the cataloging-search.inc and adds it into addbooks.tt and merge.tt to set focus on those pages and allow focus to be set to the edit items form on additem.tt --- koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc index ba878ce..ba1b4c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc @@ -1,6 +1,3 @@ -

[% LibraryName %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt index 4f73372..1ea7485 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -6,6 +6,9 @@ // diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt index 5ef6c99..2e306fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt @@ -25,6 +25,9 @@ $(document).ready(function(){ tagslib = []; $.getJSON("/cgi-bin/koha/cataloguing/merge_ajax.pl", {frameworkcode : "[% framework %]" }, function(json) { tagslib = json; + + //Set focus to cataloging search + $("input[name=q]:eq(0)").focus(); }); // Creating tabs -- 1.7.10.4