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. Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
e4849e750b
commit
3811bb4381
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue