[Koha-bugs] [Bug 34857] OPAC advanced search operator "not" is searching as "and" on chrome
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 7 14:28:43 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34857
Andreas Jonsson <andreas.jonsson at kreablo.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andreas.jonsson at kreablo.se
--- Comment #9 from Andreas Jonsson <andreas.jonsson at kreablo.se> ---
I happened to notice the following difference:
Firefox:
>> $('.form-control').get(0).disabled
<- true
Chrome:
>> $('.form-control').get(0).disabled
<- false
If you run
>> $('.form-control').get(0).disabled = true
in the console in chrome the search will work.
It looks like this is a hidden <select> which is used for copying the operator
dropdown menu when adding additional search clauses. It should be disabled.
The difference between browser is probably in execution order.
So, a fix is to change the code from bug 33233 to:
window.addEventListener('pageshow', function( e ){
$('.form-control:visible').prop('disabled' , false );
});
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list