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:
parent
6a0bc8087b
commit
82a9ff027c
|
@ -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>
|
2013-10-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/massive/massive_copy_modules.php,
|
* godmode/massive/massive_copy_modules.php,
|
||||||
|
|
|
@ -217,15 +217,14 @@ $(document).ready (function () {
|
||||||
$("#template_loading").show();
|
$("#template_loading").show();
|
||||||
|
|
||||||
var $select_template = $("#id_alert_templates").disable ();
|
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",
|
"page" : "godmode/massive/massive_add_action_alerts",
|
||||||
"get_alerts" : 1,
|
"get_alerts" : 1,
|
||||||
"id_agents[]" : idAgents
|
"id_agents[]" : idAgents
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
|
$("option", $select_template).remove ();
|
||||||
options = "";
|
options = "";
|
||||||
jQuery.each (data, function (id, value) {
|
jQuery.each (data, function (id, value) {
|
||||||
options += "<option value=\""+id+"\">"+value+"</option>";
|
options += "<option value=\""+id+"\">"+value+"</option>";
|
||||||
|
|
|
@ -221,7 +221,6 @@ $(document).ready (function () {
|
||||||
$("#template_loading").show();
|
$("#template_loading").show();
|
||||||
|
|
||||||
var $select_template = $("#id_alert_templates").disable ();
|
var $select_template = $("#id_alert_templates").disable ();
|
||||||
$("option", $select_template).remove ();
|
|
||||||
|
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{"page" : "godmode/massive/massive_delete_action_alerts",
|
{"page" : "godmode/massive/massive_delete_action_alerts",
|
||||||
|
@ -229,6 +228,8 @@ $(document).ready (function () {
|
||||||
"id_agents[]" : idAgents
|
"id_agents[]" : idAgents
|
||||||
},
|
},
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
|
$("option", $select_template).remove ();
|
||||||
|
|
||||||
options = "";
|
options = "";
|
||||||
jQuery.each (data, function (id, value) {
|
jQuery.each (data, function (id, value) {
|
||||||
options += "<option value=\""+id+"\">"+value+"</option>";
|
options += "<option value=\""+id+"\">"+value+"</option>";
|
||||||
|
|
Loading…
Reference in New Issue