Merge branch 'cherry-pick-baf16db1' into 'pandora_6.0'

Fixed problems with bulk delete alerts opertation. Gitlab: #492

See merge request !239
This commit is contained in:
vgilc 2017-03-13 12:54:05 +01:00
commit 3a41b8aa0d

View File

@ -329,13 +329,14 @@ function agent_changed_by_multiple_agents_with_alerts (event, id_agent, selected
selection_mode = 'common';
}
template = $('#id_alert_template option:selected').attr("value");
template = $('#id_alert_template option:selected').val();
$('#module').attr ('disabled', 1);
$('#module').empty ();
$('#module').append ($('<option></option>').html ("Loading...").attr ("value", 0));
jQuery.post ('ajax.php',
{"page": "operation/agentes/ver_agente",
"get_agent_modules_alerts_json_for_multiple_agents": 1,
"get_agent_modules_multiple_alerts_json_for_multiple_agents": 1,
"template": template,
"id_agent[]": idAgents,
"selection_mode": selection_mode