Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Marc Véron c087027487 Bug 10956 - Series of OPAC searches can cause a browser crash
This patch fixes the issue for bootstrap. It was earlier fixed for the prog theme.

Solution: Prevent  jQuery.fn.highlight = function(pat) to be called with empty pat
by skipping empty values in highlight loop.

To test:
Without patch, do a search as in comment #1 odr #3
Result: Endless loop (Script not responding)

Appply patch:
No endless loop, page displays OK

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
To reproduce you need to search a string with 2 spaces.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
I didn't manage to reproduce the problem, but I couldn't find
any regression either trying multiple searches.
Trusting Marc's and Jonathan's testing.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-25 16:12:34 -03:00
..
errors Bug 12763 [QA Followup] - Remove tabs and trailing space 2014-09-18 09:41:31 -03:00
sco Bug 12862: OPAC bootstrap - clean up language="javascript" 2014-10-18 11:13:07 -03:00
svc Bug 11951: fix OPAC search suggestions template error 2014-04-09 22:50:53 +00:00
text
ilsdi.tt Bug 8868: Follow-up: Update boostrap documentation page 2014-09-18 09:49:25 -03:00
maintenance.tt
opac-account.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-addbybiblionumber.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-advsearch.tt Bug 9043 [QA Followup] - Don't show "More options" are there aren't any 2014-11-10 12:25:55 -03:00
opac-alert-subscribe.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-auth-detail.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-auth-MARCdetail.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-auth.tt BUG8446, Follow up: Improve local login fallback 2014-10-16 12:27:51 -03:00
opac-authorities-home.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-authoritiessearchresultlist.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-basket.tt Bug 9214 - Show damaged status in the OPAC for items which are not for loan 2014-11-11 15:13:03 -03:00
opac-blocked.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-browser.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-course-details.tt Bug 10632 [Follow-up] Enable datatables for courses and course details in the OPAC 2014-11-11 16:07:33 -03:00
opac-course-reserves.tt Bug 10632 [Follow-up] Enable datatables for courses and course details in the OPAC 2014-11-11 16:07:33 -03:00
opac-detail.tt Bug 10956 - Series of OPAC searches can cause a browser crash 2014-11-25 16:12:34 -03:00
opac-downloadcart.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-downloadshelf.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-full-serial-issues.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-imageviewer.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-ISBDdetail.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-main.tt BUG8446, Follow up: Remove unnecessary sysprefs, move to config 2014-10-16 12:27:49 -03:00
opac-MARCdetail.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-memberentry-update-submitted.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-memberentry.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-messaging.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-mymessages.tt
opac-opensearch.tt Bug 11308: fix RSS page in bootstrap theme 2013-11-27 15:50:19 +00:00
opac-overdrive-search.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-passwd.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-privacy.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-readingrecord.tt Bug 13234 [Follow-up] Make on-site checkouts visible in OPAC 2014-11-19 11:33:36 -03:00
opac-registration-confirmation.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-registration-email-sent.tt Bug 13095: An email will be sent shortly 2014-10-28 10:46:18 -03:00
opac-registration-invalid.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-reserve.tt Bug 13116 - Make it possible to propagate errors from C4::Reserves::CanItemBeReserved() to the web-templates. 2014-11-12 11:23:41 -03:00
opac-results-grouped.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-results.tt Bug 12974 - Argument "" isn't numeric in numeric gt (>) in opac-results.tt 2014-10-14 11:05:06 -03:00
opac-review.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-search-history.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-sendbasket.tt Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
opac-sendbasketform.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-sendshelf.tt Bug 11357 - biblioitems.size value not correctly displayed in list emails sent from OPAC and intranet 2014-07-01 15:29:29 +12:00
opac-sendshelfform.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-serial-issues.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-shareshelf.tt Bug 13095: An email will be sent shortly 2014-10-28 10:46:18 -03:00
opac-shelves.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-showmarc.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-showreviews-rss.tt
opac-showreviews.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-suggestions.tt Bug 13329: Fix create a suggestion at the OPAC 2014-11-25 15:24:21 -03:00
opac-tags.tt Bug 13083 - Hard-coded " by " in opac-tags.pl 2014-10-28 09:41:17 -03:00
opac-tags_subject.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-topissues.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
opac-user.tt Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00