Lines 364-369
$( document ).ready( function () {
Link Here
|
364 |
' <label for="matchPattern_' + id + '">' + __('String used to identify cookie name') + ':</label>' + |
364 |
' <label for="matchPattern_' + id + '">' + __('String used to identify cookie name') + ':</label>' + |
365 |
' <input id="matchPattern_' + id + '" class="metaMatchPattern" type="text" value="' + item.matchPattern + '"><span class="required">' + __('Required') + '</span>' + |
365 |
' <input id="matchPattern_' + id + '" class="metaMatchPattern" type="text" value="' + item.matchPattern + '"><span class="required">' + __('Required') + '</span>' + |
366 |
' </div >' + |
366 |
' </div >' + |
|
|
367 |
' <div class="consentItem">' + |
368 |
' <label for="cookieDomain' + id + '">' + __('Cookie domain') + ':</label>' + |
369 |
' <input id="cookieDomain' + id + '" class="metaCookieDomain" type="text" value="' + item.cookieDomain + '"><span class="required">' + __('Required') + '</span>' + |
370 |
' </div >' + |
371 |
' <div class="consentItem">' + |
372 |
' <label for="cookiePath' + id + '">' + __('Cookie path') + ':</label>' + |
373 |
' <input id="cookiePath' + id + '" class="metaCookiePath" type="text" value="' + item.cookiePath + '"><span class="required">' + __('Required') + '</span>' + |
374 |
' </div >' + |
367 |
' </div >' + |
375 |
' </div >' + |
368 |
' <div class="consentRow codeRow">' + |
376 |
' <div class="consentRow codeRow">' + |
369 |
' <textarea style="display:none;" id="pref_' + id + '" class="preference preference-code codemirror" rows="10" cols="40">' + code + '</textarea>' + |
377 |
' <textarea style="display:none;" id="pref_' + id + '" class="preference preference-code codemirror" rows="10" cols="40">' + code + '</textarea>' + |
Lines 394-399
$( document ).ready( function () {
Link Here
|
394 |
name: '', |
402 |
name: '', |
395 |
description: '', |
403 |
description: '', |
396 |
matchPattern: '', |
404 |
matchPattern: '', |
|
|
405 |
cookieDomain: '', |
406 |
cookiePath: '', |
397 |
code: '', |
407 |
code: '', |
398 |
consentInOpac: false, |
408 |
consentInOpac: false, |
399 |
consentInStaff: false |
409 |
consentInStaff: false |
Lines 472-477
$( document ).ready( function () {
Link Here
|
472 |
const name = $(this).find('.metaName').val(); |
482 |
const name = $(this).find('.metaName').val(); |
473 |
const desc = $(this).find('.metaDescription').val(); |
483 |
const desc = $(this).find('.metaDescription').val(); |
474 |
const matchPattern = $(this).find('.metaMatchPattern').val(); |
484 |
const matchPattern = $(this).find('.metaMatchPattern').val(); |
|
|
485 |
const cookieDomain = $(this).find('.metaCookieDomain').val(); |
486 |
const cookiePath = $(this).find('.metaCookiePath').val(); |
475 |
const opacConsent = $(this).find('.opacConsent').is(':checked') |
487 |
const opacConsent = $(this).find('.opacConsent').is(':checked') |
476 |
const staffConsent = $(this).find('.staffConsent').is(':checked'); |
488 |
const staffConsent = $(this).find('.staffConsent').is(':checked'); |
477 |
const code = $(this).find('.preference-code').val(); |
489 |
const code = $(this).find('.preference-code').val(); |
Lines 481-486
$( document ).ready( function () {
Link Here
|
481 |
name.length === 0 && |
493 |
name.length === 0 && |
482 |
desc.length === 0 && |
494 |
desc.length === 0 && |
483 |
matchPattern.length === 0 && |
495 |
matchPattern.length === 0 && |
|
|
496 |
cookieDomain.length === 0 && |
497 |
cookiePath.length === 0 && |
484 |
code.length === 0 |
498 |
code.length === 0 |
485 |
) { |
499 |
) { |
486 |
return; |
500 |
return; |
Lines 490-495
$( document ).ready( function () {
Link Here
|
490 |
(name.length === 0) || |
504 |
(name.length === 0) || |
491 |
(desc.length === 0) || |
505 |
(desc.length === 0) || |
492 |
(matchPattern.length === 0) || |
506 |
(matchPattern.length === 0) || |
|
|
507 |
(cookiePath.length === 0) || |
493 |
(code.length === 0) |
508 |
(code.length === 0) |
494 |
) { |
509 |
) { |
495 |
invalid.push(this); |
510 |
invalid.push(this); |
Lines 499-504
$( document ).ready( function () {
Link Here
|
499 |
name: name, |
514 |
name: name, |
500 |
description: desc, |
515 |
description: desc, |
501 |
matchPattern: matchPattern, |
516 |
matchPattern: matchPattern, |
|
|
517 |
cookieDomain: cookieDomain, |
518 |
cookiePath: cookiePath, |
502 |
opacConsent: opacConsent, |
519 |
opacConsent: opacConsent, |
503 |
staffConsent: staffConsent, |
520 |
staffConsent: staffConsent, |
504 |
code: btoa(code) |
521 |
code: btoa(code) |