Bugzilla – Attachment 39506 Details for
Bug 14189
Make text persist/populate hidden fields for the Staff searchbox
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14189: Use keep_text for the authority header
Bug-14189-Use-keeptext-for-the-authority-header.patch (text/plain), 3.42 KB, created by
Jonathan Druart
on 2015-05-26 10:13:57 UTC
(
hide
)
Description:
Bug 14189: Use keep_text for the authority header
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-05-26 10:13:57 UTC
Size:
3.42 KB
patch
obsolete
>From 3061823b28caabe04165eac515fcb859b4eae427 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Tue, 26 May 2015 12:10:50 +0200 >Subject: [PATCH] Bug 14189: Use keep_text for the authority header > >includes/authorities-search.inc already used the same behavior but with >another method. >For consistency it's better to have only 1 way to do that. > >Test plan: >Go on the authority home page >Fill the input in the header and click on tab 'search all headings' and >'keyword search' and confirm that the text you have filled is kept. > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > .../prog/en/includes/authorities-search.inc | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) > >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 cbdc939..94e1048 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >@@ -14,11 +14,6 @@ > $("#header_search").tabs( "option", "selected", 2 ); > } > } >- $("#header_search input[type='text'], #header_search select").change(function() { >- var myname = $(this).attr("name"); >- var myval = $(this).val(); >- $("#header_search [name='" + myname + "']").val(myval); >- }); > }); > //]]> > </script> >@@ -58,7 +53,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_mainentry" type="text" name="value" value="[% value %]" /> >+ <input id="value_mainentry" type="text" name="value" value="[% value %]" class="head-searchbox" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -112,7 +107,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_matchheading" type="text" name="value" value="[% value %]" /> >+ <input id="value_matchheading" type="text" name="value" value="[% value %]" class="head-searchbox" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -168,7 +163,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_anywhere" type="text" name="value" value="[% value %]" /> >+ <input id="value_anywhere" type="text" name="value" value="[% value %]" class="head-searchbox" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -190,9 +185,9 @@ > </form> > </div> > <ul> >- <li><a href="#main_heading">Search main heading</a></li> >- <li><a href="#matchheading_search">Search all headings</a></li> >- <li><a href="#all_headings">Keyword search</a></li> >+ <li><a onclick="keep_text(0)" href="#main_heading">Search main heading</a></li> >+ <li><a onclick="keep_text(1)" href="#matchheading_search">Search all headings</a></li> >+ <li><a onclick="keep_text(2)" href="#all_headings">Keyword search</a></li> > </ul> > </div><!-- /header_search --> > </div><!-- /gradient --> >-- >2.1.0
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 14189
:
39104
|
39105
|
39106
|
39107
|
39108
|
39110
|
39112
|
39462
|
39505
|
39506
|
39543
|
39587
|
39588