wip reports alert actions

This commit is contained in:
Daniel Barbero Martin 2021-12-07 09:05:50 +01:00
parent 118b1e1b80
commit b19bc9c8ab
1 changed files with 22 additions and 26 deletions

View File

@ -96,7 +96,6 @@ function agents_modules_load_js()
}); });
} }
else { else {
var agentes_id = $("#id_agents2").val(); var agentes_id = $("#id_agents2").val();
var id_agentes = getQueryParam("full_agents_id"); var id_agentes = getQueryParam("full_agents_id");
if (agentes_id === null && id_agentes !== null) { if (agentes_id === null && id_agentes !== null) {
@ -128,7 +127,6 @@ function agents_modules_load_js()
jQuery.each (data, function (id, value) { jQuery.each (data, function (id, value) {
// Remove keys_prefix from the index // Remove keys_prefix from the index
id = id.substring(1); id = id.substring(1);
option = $("<option></option>") option = $("<option></option>")
.attr ("value", value["id_agente"]) .attr ("value", value["id_agente"])
.html (value["alias"]); .html (value["alias"]);
@ -155,7 +153,6 @@ function agents_modules_load_js()
jQuery.each (data, function (id, value) { jQuery.each (data, function (id, value) {
// Remove keys_prefix from the index // Remove keys_prefix from the index
id = id.substring(1); id = id.substring(1);
option = $("<option></option>") option = $("<option></option>")
.attr ("value", value["id_agente"]) .attr ("value", value["id_agente"])
.html (value["alias"]); .html (value["alias"]);
@ -180,8 +177,8 @@ function agents_modules_load_js()
if(data){ if(data){
jQuery.each (data, function (id, value) { jQuery.each (data, function (id, value) {
option = $("<option></option>") option = $("<option></option>")
.attr ("value", value["id_agente_modulo"]) .attr ("value", id)
.html (value["nombre"]); .html (value);
$("#module").append (option); $("#module").append (option);
}); });
} }
@ -207,8 +204,8 @@ function agents_modules_load_js()
if(data){ if(data){
jQuery.each (data, function (id, value) { jQuery.each (data, function (id, value) {
option = $("<option></option>") option = $("<option></option>")
.attr ("value", value["id_agente_modulo"]) .attr ("value", id)
.html (value["nombre"]); .html (value);
$("#module").append (option); $("#module").append (option);
}); });
} }
@ -231,8 +228,8 @@ function agents_modules_load_js()
if(data){ if(data){
jQuery.each (data, function (id, value) { jQuery.each (data, function (id, value) {
option = $("<option></option>") option = $("<option></option>")
.attr ("value", value["id_agente_modulo"]) .attr ("value", id)
.html (value["nombre"]); .html (value);
$("#module").append (option); $("#module").append (option);
}); });
@ -262,7 +259,6 @@ function agents_modules_load_js()
return results[1]; return results[1];
} }
} }
</script> </script>
<?php <?php
} }