Bug 34369: Fix 'Did you mean'
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: danyonsewell <danyonsewell@catalyst.net.nz>
This commit is contained in:
parent
1b59140cca
commit
d29660038f
|
|
@ -1,5 +1,6 @@
|
|||
[% USE raw %]
|
||||
[% USE Asset %]
|
||||
[% USE Koha %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% BLOCK pluginlist %]
|
||||
<div class="pluginlist">
|
||||
|
|
@ -67,6 +68,7 @@
|
|||
plugins that you want to use.
|
||||
</div>
|
||||
<form action="/cgi-bin/koha/admin/didyoumean.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<fieldset id="didyoumeanopac">
|
||||
<legend>OPAC</legend>
|
||||
[% PROCESS pluginlist plugins=OPACpluginlist type='opac' %]
|
||||
|
|
@ -107,7 +109,8 @@
|
|||
function yesimeant() {
|
||||
var OPACdidyoumean = serialize_plugins('opac');
|
||||
|
||||
var data = "pref_OPACdidyoumean=" + encodeURIComponent(OPACdidyoumean);
|
||||
const csrf_token = "[% Koha.GenerateCSRF | $raw %]";
|
||||
let data = "pref_OPACdidyoumean=%s&csrf_token=%s".format(encodeURIComponent(OPACdidyoumean), csrf_token);
|
||||
|
||||
$.ajax({
|
||||
data: data,
|
||||
|
|
|
|||
Loading…
Reference in New Issue