@@ -71,7 +71,7 @@ function(event) {
71
71
var link = '';
72
72
link += '<li id="menu7">';
73
73
link += '<a href="' + rootDoc + '/plugins/formcreator/front/formlist.php" class="itemP">';
74
- link += "<?php echo _n ('Form ' , 'Forms ' , 2 , 'formcreator ' ); ?> ";
74
+ link += "<?php echo Toolbox:: addslashes_deep ( _n ('Form ' , 'Forms ' , 2 , 'formcreator ' ) ); ?> ";
75
75
link += '</a>';
76
76
link += '</li>';
77
77
@@ -307,7 +307,7 @@ function showTiles(tiles, defaultForms) {
307
307
tiles = sortFormAndFaqItems(tiles, sortByName);
308
308
html = '';
309
309
if (defaultForms) {
310
- html += '<p><?php echo __ ('No form found. Please choose a form below instead ' , 'formcreator ' )?> </p>'
310
+ html += '<p><?php echo Toolbox:: addslashes_deep ( __ ('No form found. Please choose a form below instead ' , 'formcreator ' ) )?> </p>'
311
311
}
312
312
html += buildTiles(tiles);
313
313
@@ -327,7 +327,7 @@ function (response) {
327
327
}
328
328
).fail(
329
329
function () {
330
- html = '<p><?php echo __ ('An error occured while querying forms ' , 'formcreator ' )?> </p>'
330
+ html = '<p><?php echo Toolbox:: addslashes_deep ( __ ('An error occured while querying forms ' , 'formcreator ' ) )?> </p>'
331
331
$('#plugin_formcreator_wizard_forms').empty();
332
332
$('#plugin_formcreator_wizard_forms').prepend(html);
333
333
$('#plugin_formcreator_formlist').masonry({
@@ -365,7 +365,7 @@ function buildTiles(list) {
365
365
366
366
if (list.length == 0) {
367
367
html = '<p id="plugin_formcreator_formlist">'
368
- + "<?php echo __ ('No form yet in this category ' , 'formcreator ' ) ?> "
368
+ + "<?php echo Toolbox:: addslashes_deep ( __ ('No form yet in this category ' , 'formcreator ' ) ) ?> "
369
369
+ '</p>';
370
370
} else {
371
371
var items = [];
@@ -463,7 +463,7 @@ function moveQuestion(token, question_id, action) {
463
463
}
464
464
465
465
function deleteQuestion(items_id, token, question_id) {
466
- if(confirm("<?php echo __ ('Are you sure you want to delete this question? ' , 'formcreator ' ); ?> ")) {
466
+ if(confirm("<?php echo Toolbox:: addslashes_deep ( __ ('Are you sure you want to delete this question? ' , 'formcreator ' ) ); ?> ")) {
467
467
jQuery.ajax({
468
468
url: urlFrontQuestion,
469
469
type: "POST",
@@ -524,7 +524,7 @@ function duplicateSection(items_id, token, section_id) {
524
524
}
525
525
526
526
function deleteSection(items_id, token, section_id) {
527
- if(confirm("<?php echo __ ('Are you sure you want to delete this section? ' , 'formcreator ' ); ?> ")) {
527
+ if(confirm("<?php echo Toolbox:: addslashes_deep ( __ ('Are you sure you want to delete this section? ' , 'formcreator ' ) ); ?> ")) {
528
528
jQuery.ajax({
529
529
url: urlFrontSection,
530
530
type: "POST",
@@ -561,7 +561,7 @@ function addTarget(items_id, token) {
561
561
}
562
562
563
563
function deleteTarget(items_id, token, target_id) {
564
- if(confirm("<?php echo __ ('Are you sure you want to delete this destination: ' , 'formcreator ' ); ?> ")) {
564
+ if(confirm("<?php echo Toolbox:: addslashes_deep ( __ ('Are you sure you want to delete this destination: ' , 'formcreator ' ) ); ?> ")) {
565
565
jQuery.ajax({
566
566
url: rootDoc + '/plugins/formcreator/front/target.form.php',
567
567
type: "POST",
0 commit comments