View | Details | Raw Unified | Return to bug 3652
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-1 / +1 lines)
Lines 63-69 Link Here
63
            widgets : ['zebra'],
63
            widgets : ['zebra'],
64
            sortList: [[0,0]]
64
            sortList: [[0,0]]
65
        });
65
        });
66
        [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
66
        [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
67
            q_array = query_desc.split(" ");
67
            q_array = query_desc.split(" ");
68
            highlightOn();
68
            highlightOn();
69
            $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
69
            $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results-grouped.tt (-1 / +1 lines)
Lines 62-68 $(document).ready(function(){ Link Here
62
        return false;
62
        return false;
63
    });
63
    });
64
    [% IF ( query_desc ) %]
64
    [% IF ( query_desc ) %]
65
    var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
65
    var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
66
    q_array = query_desc.split(" ");
66
    q_array = query_desc.split(" ");
67
    // ensure that we don't have "" at the end of the array, which can
67
    // ensure that we don't have "" at the end of the array, which can
68
    // break the highlighter
68
    // break the highlighter
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt (-2 / +1 lines)
Lines 207-213 $(document).ready(function(){ Link Here
207
[% END %]
207
[% END %]
208
    $("#holdDetails").hide();
208
    $("#holdDetails").hide();
209
209
210
[% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]";
210
[% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
211
        q_array = query_desc.split(" ");
211
        q_array = query_desc.split(" ");
212
        // ensure that we don't have "" at the end of the array, which can
212
        // ensure that we don't have "" at the end of the array, which can
213
        // break the highlighter
213
        // break the highlighter
214
- 

Return to bug 3652