[Koha-bugs] [Bug 8646] Certain search terms cause browser "script taking too long" error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 17 14:40:08 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8646

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Signed Off
                 CC|                            |jonathan.druart at biblibre.co
                   |                            |m

--- Comment #3 from Jonathan Druart <jonathan.druart at 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.


More information about the Koha-bugs mailing list