Bugzilla – Attachment 149476 Details for
Bug 33233
OPAC advanced search inputs stay disabled when using browser's back button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33233: Don't allow disabled attribute to remain when using browser's back button
Bug-33233-Dont-allow-disabled-attribute-to-remain-.patch (text/plain), 1.51 KB, created by
Lucas Gass (lukeg)
on 2023-04-11 20:44:36 UTC
(
hide
)
Description:
Bug 33233: Don't allow disabled attribute to remain when using browser's back button
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-04-11 20:44:36 UTC
Size:
1.51 KB
patch
obsolete
>From e0b394dfcaa5bbb80d910b24816de57d688a80aa Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 11 Apr 2023 20:41:28 +0000 >Subject: [PATCH] Bug 33233: Don't allow disabled attribute to remain when > using browser's back button > >To test: >1. Go to OPAC advanced search and do a search using only one of the inputs. >2. Once the search is complete use the browser's back button to return to the advanced search. >3. Notice the unused inputs are disabled. >4. Apply patch and try again. Now the inputs should not be disabled. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 3f0e874bfe..7e09f3911f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -459,6 +459,9 @@ > [% BLOCK jsinclude %] > [% Asset.js("lib/jquery/plugins/jquery.deserialize.min.js") | $raw %] > <script> >+window.addEventListener('pageshow', function( e ){ >+ $('.form-control').prop('disabled' , false ); >+}); > $(document).ready(function() { > [% IF search_groups %] > function branch_limit() { >@@ -559,6 +562,5 @@ $(document).ready(function() { > $(this).parent().parent().remove(); > $('.search-term-row .search-term-input select[name="op"]').first().prop("disabled",true).hide(); > }); >- > </script> > [% END %] >-- >2.30.2
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 33233
:
149476
|
149701
|
150141