Bugzilla – Attachment 35673 Details for
Bug 13672
OPAC locks up browser when browsing items from series link with NoveList and OpacHighlightedWords
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13672 - OPAC locks up browser when browsing items from series link with NoveList and OpacHighlightedWords
Bug-13672---OPAC-locks-up-browser-when-browsing-it.patch (text/plain), 1.71 KB, created by
Kyle M Hall (khall)
on 2015-02-05 17:22:02 UTC
(
hide
)
Description:
Bug 13672 - OPAC locks up browser when browsing items from series link with NoveList and OpacHighlightedWords
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-02-05 17:22:02 UTC
Size:
1.71 KB
patch
obsolete
>From b8ab02c7a9b15fc60074a9be8f2e639a4831940e Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 5 Feb 2015 12:19:38 -0500 >Subject: [PATCH] Bug 13672 - OPAC locks up browser when browsing items from series link with NoveList and OpacHighlightedWords > >It appears that an empty string is sneaking into the list of words >to highlight and that is causing the browser to freak out. > >Test Plan: >1) Enable NoveList >2) Enable OpacHighlightedItems >3) Search a title with a series (i.e. The Hunger Games) >4) Click into the record >5) Click on the series to search it >6) Click on a title in the search results >7) If Firefox doesn't crash, it gives the unresponsive script message >8) Apply this patch >9) Repeat steps 3-6 >10) Browser doesn't freak our >--- > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 71b022b..3e5364f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1434,6 +1434,7 @@ > > [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]"; > q_array = query_desc.split(" "); >+ q_array = q_array.filter(function(n){ return n }); // Remove empty strings > highlightOn(); > $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;}); > $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %] >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13672
:
35673
|
35675
|
35729