http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8646 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |jonathan.druart@biblibre.co | |m --- Comment #3 from Jonathan Druart <jonathan.druart@biblibre.com> --- Works as expected. I fixed that (in BibLibre repo) with: function highlightOn() { var x; for (x in q_array) { - $("p").highlight(q_array[x]); + if ( q_array[x].length > 0 ) { + $("p").highlight(q_array[x]); + } } $(".highlight_toggle").toggle(); } But your patch looks good too. -- You are receiving this mail because: You are watching all bug changes.