mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
wip reports alert actions
This commit is contained in:
parent
cb0039d7a7
commit
960c2de6c3
@ -4586,8 +4586,8 @@ $(document).ready (function () {
|
|||||||
$("#checkbox-module-check-all").prop('checked', false);
|
$("#checkbox-module-check-all").prop('checked', false);
|
||||||
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);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -4609,11 +4609,12 @@ $(document).ready (function () {
|
|||||||
$("#module").html('');
|
$("#module").html('');
|
||||||
// Check module all.
|
// Check module all.
|
||||||
$("#checkbox-module-check-all").prop('checked', false);
|
$("#checkbox-module-check-all").prop('checked', false);
|
||||||
|
console.log(data);
|
||||||
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -4639,8 +4640,8 @@ $(document).ready (function () {
|
|||||||
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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -2921,8 +2921,6 @@ function alerts_get_alert_fired($filters=[], $groupsBy=[])
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
hd($filters['templates']);
|
|
||||||
|
|
||||||
$filter_templates = '';
|
$filter_templates = '';
|
||||||
if (isset($filters['templates']) === true
|
if (isset($filters['templates']) === true
|
||||||
&& empty($filters['templates']) === false
|
&& empty($filters['templates']) === false
|
||||||
|
@ -3519,9 +3519,6 @@ function get_same_modules($agents, $modules)
|
|||||||
implode(',', array_values($agents))
|
implode(',', array_values($agents))
|
||||||
);
|
);
|
||||||
|
|
||||||
hd('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
|
||||||
hd($sql);
|
|
||||||
|
|
||||||
$all = db_get_all_rows_sql($sql);
|
$all = db_get_all_rows_sql($sql);
|
||||||
|
|
||||||
if ($all === false) {
|
if ($all === false) {
|
||||||
|
@ -310,7 +310,8 @@ if (is_ajax()) {
|
|||||||
|
|
||||||
echo json_encode($modules);
|
echo json_encode($modules);
|
||||||
} else {
|
} else {
|
||||||
select_modules_for_agent_group($id_group, $id_agents, $selection, false);
|
$modules = select_modules_for_agent_group($id_group, $id_agents, $selection, false);
|
||||||
|
echo json_encode($modules);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user