2012-10-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/javascript/pandora.js
	 operation/agentes/ver_agente.php: Fixed multiselect in wizards 
	 of Pandora Console.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7065 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-10-10 18:04:57 +00:00
parent 09213623fc
commit 5f73897a4f
3 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-10-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/javascript/pandora.js
operation/agentes/ver_agente.php: Fixed multiselect in wizards
of Pandora Console.
2012-10-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php: fixes and changes for the new

View File

@ -164,6 +164,11 @@ function agent_changed_by_multiple_agents (event, id_agent, selected) {
selection_mode = 'common';
}
var serialized = $('#hidden-serialized').val();
if (serialized == undefined) {
serialized = '';
}
$('#module').attr ('disabled', 1);
$('#module').empty ();
$('#module').append ($('<option></option>').html ("Loading...").attr ("value", 0));
@ -181,7 +186,8 @@ function agent_changed_by_multiple_agents (event, id_agent, selected) {
"id_agent[]": idAgents,
"all": find_modules,
"custom_condition": custom_condition,
"selection_mode": selection_mode
"selection_mode": selection_mode,
"serialized": serialized
},
function (data) {
$('#module').empty ();

View File

@ -166,6 +166,7 @@ if (is_ajax ()) {
$idAgents = get_parameter('id_agent');
$custom_condition = get_parameter('custom_condition', '');
$selection_mode = get_parameter('selection_mode', 'common');
$serialized = get_parameter('serialized', '');
$all = (string)get_parameter('all', 'all');
switch ($all) {
@ -288,7 +289,10 @@ if (is_ajax ()) {
$result = array();
foreach($nameModules as $nameModule) {
$result[$nameModule['nombre'].'$*$'.implode('|', $idAgents)] = io_safe_output($nameModule['nombre']);
if (empty($serialized))
$result[$nameModule['nombre']] = io_safe_output($nameModule['nombre']);
else
$result[$nameModule['nombre'].'$*$'.implode('|', $idAgents)] = io_safe_output($nameModule['nombre']);
}
}