2013-10-25 Miguel de Dios <miguel.dedios@artica.es>

* godmode/massive/massive_delete_action_alerts.php,
	godmode/massive/massive_add_action_alerts.php: fixed the javascript
	to load "alert templates" select box when change quickly the agents
	in the select box "Agents with templates".




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-10-25 11:21:22 +00:00
parent 94765e927f
commit 1a9380c1a0
3 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2013-10-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_add_action_alerts.php: fixed the javascript
to load "alert templates" select box when change quickly the agents
in the select box "Agents with templates".
2013-10-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/massive/massive_copy_modules.php,

View File

@ -217,18 +217,17 @@ $(document).ready (function () {
$("#template_loading").show();
var $select_template = $("#id_alert_templates").disable ();
$("option", $select_template).remove ();
jQuery.post ("ajax.php",
{
jQuery.post ("ajax.php", {
"page" : "godmode/massive/massive_add_action_alerts",
"get_alerts" : 1,
"id_agents[]" : idAgents
},
function (data, status) {
$("option", $select_template).remove ();
options = "";
jQuery.each (data, function (id, value) {
options += "<option value=\""+id+"\">"+value+"</option>";
options += "<option value=\""+id+"\">"+value+"</option>";
});
if (options == "") {

View File

@ -221,7 +221,6 @@ $(document).ready (function () {
$("#template_loading").show();
var $select_template = $("#id_alert_templates").disable ();
$("option", $select_template).remove ();
jQuery.post ("ajax.php",
{"page" : "godmode/massive/massive_delete_action_alerts",
@ -229,6 +228,8 @@ $(document).ready (function () {
"id_agents[]" : idAgents
},
function (data, status) {
$("option", $select_template).remove ();
options = "";
jQuery.each (data, function (id, value) {
options += "<option value=\""+id+"\">"+value+"</option>";