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
94765e927f
commit
1a9380c1a0
|
@ -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,
|
||||
|
|
|
@ -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 == "") {
|
||||
|
|
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue