Changed simple quote in alerts

Former-commit-id: 48f06d79b9f6e93ba2164d8da6240f28cc4f785c
This commit is contained in:
Daniel Maya 2019-05-14 11:11:27 +02:00
parent 15446453fb
commit b508e40a73
8 changed files with 19 additions and 19 deletions

View File

@ -1062,7 +1062,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -1078,7 +1078,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -1094,7 +1094,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -1110,7 +1110,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -1126,7 +1126,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -1151,7 +1151,7 @@ $(document).ready (function () {
|| ($("#module option").length == 1 || ($("#module option").length == 1
&& $("#module option").eq(0).val() == 0)) { && $("#module option").eq(0).val() == 0)) {
alert('<?php echo __('Modules list is empty'); ?>'); alert("<?php echo __('Modules list is empty'); ?>");
return false; return false;
} }
$('#module option').map(function() { $('#module option').map(function() {

View File

@ -571,7 +571,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -587,7 +587,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -603,7 +603,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -619,7 +619,7 @@ $(document).ready (function () {
$("select[name='module[]']").append($("<option></option>").val(id).html(name)); $("select[name='module[]']").append($("<option></option>").val(id).html(name));
} }
else { else {
alert('<?php echo __('Repeated'); ?>'); alert("<?php echo __('Repeated'); ?>");
} }
$("#module").find("option[value='0']").remove(); $("#module").find("option[value='0']").remove();
} }
@ -641,7 +641,7 @@ $(document).ready (function () {
$("#submit-create_modules_btn").click(function () { $("#submit-create_modules_btn").click(function () {
if($("#module option").length == 0 || ($("#module option").length == 1 && $("#module option").eq(0).val() == 0)) { if($("#module option").length == 0 || ($("#module option").length == 1 && $("#module option").eq(0).val() == 0)) {
alert('<?php echo __('Modules list is empty'); ?>'); alert("<?php echo __('Modules list is empty'); ?>");
return false; return false;
} }
$('#module option').map(function() { $('#module option').map(function() {

View File

@ -1038,7 +1038,7 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
} }
function show_executing_alert () { function show_executing_alert () {
alert('<?php echo __('This elements cannot be modified while the downtime is being executed'); ?>'); alert("<?php echo __('This elements cannot be modified while the downtime is being executed'); ?>");
} }
function show_editor_module(id_agent) { function show_editor_module(id_agent) {
@ -1168,7 +1168,7 @@ ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript
var module_sel = $("#modules", $('#module_editor_' + id_agent)).val(); var module_sel = $("#modules", $('#module_editor_' + id_agent)).val();
if (module_sel == 0) { if (module_sel == 0) {
alert('<?php echo __('Please select a module.'); ?>'); alert("<?php echo __('Please select a module.'); ?>");
} }
else { else {
action_in_progress = true; action_in_progress = true;

View File

@ -357,7 +357,7 @@ function addConnectionMap() {
for (var index in connectionMaps) { for (var index in connectionMaps) {
if (isInt(index)) { if (isInt(index)) {
if (connectionMaps[index] == idConnectionMap) { if (connectionMaps[index] == idConnectionMap) {
alert('<?php echo __('The connection'); ?> "' + connectionMapName + '" <?php echo __('just added previously.'); ?>'); alert("<?php echo __('The connection'); ?> "' + connectionMapName + '" <?php echo __('just added previously.'); ?>");
return; return;
} }

View File

@ -391,7 +391,7 @@ $(document).ready (function () {
}); });
if($('#module')[0].childElementCount == 1 && ($('#module')[0].value == "" || $('#module')[0].value == "0")) { if($('#module')[0].childElementCount == 1 && ($('#module')[0].value == "" || $('#module')[0].value == "0")) {
alert('<?php echo __('Please, select a module'); ?>'); alert("<?php echo __('Please, select a module'); ?>");
return false; return false;
} }
}); });

View File

@ -3109,7 +3109,7 @@ function addSLARow() {
}); });
} }
else { else {
alert('<?php echo __('Could not be created'); ?>'); alert("<?php echo __('Could not be created'); ?>");
} }
} }

View File

@ -1189,13 +1189,13 @@ ui_require_javascript_file('pandora_modules');
} }
} }
else { else {
alert('<?php echo __('The plugin command cannot be updated because some modules or components are using the plugin.'); ?>'); alert("<?php echo __('The plugin command cannot be updated because some modules or components are using the plugin.'); ?>");
} }
} }
} }
var macros_click_locked_event = function (event) { var macros_click_locked_event = function (event) {
alert('<?php echo __('The plugin macros cannot be updated because some modules or components are using the plugin'); ?>'); alert("<?php echo __('The plugin macros cannot be updated because some modules or components are using the plugin'); ?>");
} }
if (locked) { if (locked) {

View File

@ -226,7 +226,7 @@ unset($table);
url: "ajax.php", url: "ajax.php",
success: function (data) { success: function (data) {
if (data.correct == 0) { if (data.correct == 0) {
alert('<?php echo __('There was error on setup the default map.'); ?>'); alert("<?php echo __('There was error on setup the default map.'); ?>");
} }
} }
}); });