Bugzilla – Attachment 116924 Details for
Bug 27703
Can't navigate in Authorized values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27703: Make ID of category select field unique
Bug-27703-Make-ID-of-category-select-field-unique.patch (text/plain), 2.50 KB, created by
Owen Leonard
on 2021-02-16 13:45:34 UTC
(
hide
)
Description:
Bug 27703: Make ID of category select field unique
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-02-16 13:45:34 UTC
Size:
2.50 KB
patch
obsolete
>From 8375ffc8e24e761713419db10c215cd65d7affac Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 16 Feb 2021 13:27:34 +0000 >Subject: [PATCH] Bug 27703: Make ID of category select field unique > >Duplicate element IDs on the authorized values page are invalid and >cause a problem with the JavaScript intended to submit the form when the >category select field changes. > >This patch changes the ID of the label and the field and makes the >corresponding change to the JavaScript. > >To test, apply the patch and go to Administration -> Authorized values. > > - Click an authorized value category to view its contents. > - Using mouse or keyboard, make a selection from the "Show category" > dropdown menu. > - The form should submit automatically and direct you to the > corresponding category. > - Validate the HTML of the page and confirm that there are no errors. >--- > .../intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 3edb239e9c..bac32901d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -195,8 +195,8 @@ > > <form action="/cgi-bin/koha/admin/authorised_values.pl" method="get" id="category"> > <p> >- <label for="searchfield">Show category: </label> >- <select name="searchfield" id="searchfield" size="1"> >+ <label for="category_search">Show category: </label> >+ <select name="searchfield" id="category_search" size="1"> > [% FOR c IN categories %] > [% IF c == searchfield %] > <option value="[% c | html %]" selected="selected">[% c | html %]</option> >@@ -205,7 +205,6 @@ > [% END %] > [% END %] > </select> >- <input type="submit" value="Submit" /> > </p> > </form> > >@@ -329,8 +328,7 @@ > $("a.delete").click(function(){ > return confirm(_("Are you sure you want to delete this authorized value?")); > }); >- $('#category').find("input:submit").hide(); >- $('#searchfield').change(function() { >+ $('#category_search').change(function() { > $('#category').submit(); > }); > $(".library_limitation").tooltip(); >-- >2.11.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 27703
:
116923
|
116924
|
117231
|
117560