@@ -71,7 +71,7 @@ function(event) {
7171var link = '';
7272link += '<li id="menu7">';
7373link += '<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 ' ) ); ?> ";
7575link += '</a>';
7676link += '</li>';
7777
@@ -307,7 +307,7 @@ function showTiles(tiles, defaultForms) {
307307 tiles = sortFormAndFaqItems(tiles, sortByName);
308308 html = '';
309309 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>'
311311 }
312312 html += buildTiles(tiles);
313313
@@ -327,7 +327,7 @@ function (response) {
327327 }
328328 ).fail(
329329 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>'
331331 $('#plugin_formcreator_wizard_forms').empty();
332332 $('#plugin_formcreator_wizard_forms').prepend(html);
333333 $('#plugin_formcreator_formlist').masonry({
@@ -365,7 +365,7 @@ function buildTiles(list) {
365365
366366 if (list.length == 0) {
367367 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 ' ) ) ?> "
369369 + '</p>';
370370 } else {
371371 var items = [];
@@ -463,7 +463,7 @@ function moveQuestion(token, question_id, action) {
463463}
464464
465465function 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 ' ) ); ?> ")) {
467467 jQuery.ajax({
468468 url: urlFrontQuestion,
469469 type: "POST",
@@ -524,7 +524,7 @@ function duplicateSection(items_id, token, section_id) {
524524}
525525
526526function 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 ' ) ); ?> ")) {
528528 jQuery.ajax({
529529 url: urlFrontSection,
530530 type: "POST",
@@ -561,7 +561,7 @@ function addTarget(items_id, token) {
561561}
562562
563563function 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 ' ) ); ?> ")) {
565565 jQuery.ajax({
566566 url: rootDoc + '/plugins/formcreator/front/target.form.php',
567567 type: "POST",
0 commit comments