Bug 23777: Use To.json in preferences.tt
Test plan: Search for "foo bar" (with double quotes) in the sysprefs Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
a55d9ff0ba
commit
348d84ea7f
|
|
@ -1,4 +1,5 @@
|
|||
[% USE raw %]
|
||||
[% USE To %]
|
||||
[% USE Asset %]
|
||||
[% USE Koha %]
|
||||
[% SET footerjs = 1 %]
|
||||
|
|
@ -196,7 +197,7 @@
|
|||
|
||||
});
|
||||
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw
|
||||
var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
|
||||
var to_highlight = "[% To.json( searchfield ) | $raw %]";
|
||||
var search_jumped = [% IF ( search_jumped ) %]true[% ELSE %]false[% END %];
|
||||
var MSG_NOTHING_TO_SAVE = _("Nothing to save");
|
||||
var MSG_SAVING = _("Saving...");
|
||||
|
|
|
|||
Loading…
Reference in New Issue