2009-09-11 Miguel de Dios <miguel.dedios@artica.es>

* godmode/alerts/alert_list.php: fix bug in "Alerts » Manage alerts" when
	you choose the agent the module select did'nt change to enable.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1932 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-09-11 09:21:24 +00:00
parent 863f3ab17e
commit 721cc4ebe5
2 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-09-11 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/alert_list.php: fix bug in "Alerts » Manage alerts" when
you choose the agent the module select did'nt change to enable.
2009-09-09 Sancho Lerena <slerena@artica.es>
* operation/agentes/estado_monitores.php: Main view now also show last

View File

@ -560,6 +560,39 @@ $(document).ready (function () {
}
);
$("#text-id_agent").result (
function () {
selectAgent = true;
var agent_name = this.value;
$('#id_agent_module').fadeOut ('normal', function () {
$('#id_agent_module').empty ();
var inputs = [];
inputs.push ("agent_name=" + agent_name);
inputs.push ("get_agent_modules_json=1");
inputs.push ("page=operation/agentes/ver_agente");
jQuery.ajax ({
data: inputs.join ("&"),
type: 'GET',
url: action="ajax.php",
timeout: 10000,
dataType: 'json',
success: function (data) {
$('#id_agent_module').append ($('<option></option>').attr ('value', 0).text ("--"));
jQuery.each (data, function (i, val) {
s = html_entity_decode (val['nombre']);
$('#id_agent_module').append ($('<option></option>').attr ('value', val['id_agente_modulo']).text (s));
});
$('#id_agent_module').enable();
$('#id_agent_module').fadeIn ('normal');
}
});
});
}
);
//----------------------------
$("#text-agent_name").autocomplete ("ajax.php",
{