Bugzilla – Attachment 28837 Details for
Bug 11905
when editing item, cursor is positioning in search box and not to item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11905 Patch to remove js from cataloging-search and add to individual tt files
0001-Bug-11905-when-editing-item-cursor-is-positioning-in.patch (text/plain), 2.73 KB, created by
Paola Rossi
on 2014-06-13 13:27:22 UTC
(
hide
)
Description:
Bug 11905 Patch to remove js from cataloging-search and add to individual tt files
Filename:
MIME Type:
Creator:
Paola Rossi
Created:
2014-06-13 13:27:22 UTC
Size:
2.73 KB
patch
obsolete
>From 9faa703868a7b49e4906d965c681e23e4112b136 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <Nick@quecheelibrary.org> >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 > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> >--- > 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 @@ >-<script>$(document).ready(function(){ >- $("input[name=q]:eq(0)").focus(); >-});</script> > > <div class="gradient"> > <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Cataloging Resident Search Box --> >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 @@ > //<![CDATA[ > > $(document).ready(function() { >+ //Set focus to cataloging search >+ $("input[name=q]:eq(0)").focus(); >+ > $("#z3950search").click(function(){ > PopupZ3950(""); > return false; >@@ -32,6 +35,7 @@ > [% END %] > return strQuery; > } >+ > //]]> > </script> > </head> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11905
:
25914
|
28166
|
28666
|
28668
|
28717
|
28837
|
28839