Bugzilla – Attachment 23034 Details for
Bug 7484
Keeping typed values when searching for authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Keeping typed values when searching for authorities
0001-Bug-7484-Keeping-typed-values-when-searching-for-aut.patch (text/plain), 1.92 KB, created by
Paola Rossi
on 2013-11-19 14:00:31 UTC
(
hide
)
Description:
Keeping typed values when searching for authorities
Filename:
MIME Type:
Creator:
Paola Rossi
Created:
2013-11-19 14:00:31 UTC
Size:
1.92 KB
patch
obsolete
>From b060be43b36cd97da08d089d2bad946c8c38113e Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 17 Jul 2013 17:26:34 +0200 >Subject: [PATCH] Bug 7484 - Keeping typed values when searching for > authorities > >1) I'm on the "Search authorities" tab. I select an authority type, then change the active tab. The type change is lost. >2) I'm on a tab and type a search pattern, then change tab, the string is lost. >This behaviour is logical, given the fact that we're using tabs, but it would be more practical to keep the typed informations when the user changes the search mode. > >This patch add a few JQuery code to synchronise inputs between all tabbed authorities search forms. > >Test plan : >- Go to Authorities home page : cgi-bin/koha/authorities/authorities-home.pl >- In toolbar, "Search main heading" is selected >- Change all inputs : authotity type, operator, term, and sort order >- Click on "Search all headings" tab >=> Inputs are the same has previous tab >- Click on "Keyword search" tab >=> Inputs are the same has previous tab > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >index d0b13a7..6da7ed3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >@@ -14,6 +14,11 @@ > $("#header_search").tabs( "option", "selected", 2 ); > } > } >+ $("#header_search input[type='text'], #header_search select").change(function() { >+ myname = $(this).attr("name"); >+ myval = $(this).val(); >+ $("#header_search [name='" + myname + "']").val(myval); >+ }); > }); > //]]> > </script> >-- >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 7484
:
19731
|
23034
|
23068
|
23118