mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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:
parent
21f0962ca0
commit
7b294b0978
@ -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>
|
2009-09-09 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* operation/agentes/estado_monitores.php: Main view now also show last
|
* operation/agentes/estado_monitores.php: Main view now also show last
|
||||||
|
@ -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",
|
$("#text-agent_name").autocomplete ("ajax.php",
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user