[Bug 25749] New: "Unhighlight" action doesn't work - "Uncaught TypeError: $(...).removeHighlight is not a function"
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 Bug ID: 25749 Summary: "Unhighlight" action doesn't work - "Uncaught TypeError: $(...).removeHighlight is not a function" Change sponsored?: --- Product: Koha Version: 19.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: ephetteplace@cca.edu QA Contact: testopia@bugs.koha-community.org Created attachment 105861 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105861&action=edit Screenshot just after Unhighlight button was clicked Steps to recreate: - set OpacHighlightedWords to "Highlight" - Search any text that yields results, then view one of the result's bib details pages - Search terms are highlighted - Select the "Unhighlight" action from the list on the right - Nothing happens - View your JavaScript console, see this error: opac-detail.pl?biblionumber=XXXX&query_desc=books:1485 Uncaught TypeError: $(...).removeHighlight is not a function at highlightOff (opac-detail.pl?biblionumber=7500&query_desc=books:1485) ... What's odd about this is that the highlight jQuery plugin at /opac-tmpl/bootstrap/lib/jquery/plugins/jquery.highlight-3_19.1106000.js does appear to be loaded; it's in the list of files under Chrome's "Network" tab. If you copy-paste its contents into your JS console, then the highlight toggle works as expected. My guess is this has something to do with the plugin not being defined on the same version of jQuery that is being used in the highlightOff() function. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Exactly what version are you using? I'm not able to reproduce this problem on 19.11.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 --- Comment #2 from Eric Phetteplace <ephetteplace@cca.edu> --- About Koha says 19.11.06.000 You can see it in our OPAC - https://library.cca.edu/cgi-bin/koha/opac-detail.pl?biblionumber=7500&query_desc=books We have a lot of JS in OpacUserJS, it seems like this must be a conflict introduced there but I have no idea what it could be. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jonathan.druart@bugs.koha-c | |ommunity.org Resolution|--- |INVALID --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Eric, you have a syntax error on a JS code that is not part of Koha. You should contact the mailing list instead. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25749 --- Comment #4 from Eric Phetteplace <ephetteplace@cca.edu> --- My apologies, I should have investigated further before reporting this. For the record, it turned out to be a jQuery version conflict with a Tampermonkey script that was loading another jQuery without calling $.noConflict(). -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org