Bugzilla – Attachment 28839 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 - when editing item, cursor is positioning in search box and not to item
Bug-11905---when-editing-item-cursor-is-positionin.patch (text/plain), 2.71 KB, created by
Jonathan Druart
on 2014-06-13 13:43:08 UTC
(
hide
)
Description:
Bug 11905 - when editing item, cursor is positioning in search box and not to item
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-06-13 13:43:08 UTC
Size:
2.71 KB
patch
obsolete
>From e083753c4faf6bdcacef6f1480594f5354b625fd 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> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > 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 >-- >2.0.0.rc2
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