Fixed the javascript bug in get list of modules.

This commit is contained in:
mdtrooper 2015-08-14 11:42:42 +02:00
parent 507308c15c
commit 6105ed453e
1 changed files with 13 additions and 8 deletions

View File

@ -196,14 +196,19 @@ function agent_changed_by_multiple_agents (event, id_agent, selected) {
var homedir = '.';
var id_server = 0;
if (typeof event !== 'undefined' && typeof event.data !== 'undefined') {
if (typeof event.data.homedir !== 'undefined') {
homedir = event.data.homedir;
}
if (typeof event.data.metaconsole !== 'undefined'
&& event.data.metaconsole) {
id_server = $("#" + event.data.id_server).val();
if (event.data != null) {
if (typeof event.data !== 'undefined') {
if (typeof event.data.homedir !== 'undefined') {
homedir = event.data.homedir;
}
if (typeof event.data.metaconsole !== 'undefined'
&& event.data.metaconsole) {
id_server = $("#" + event.data.id_server).val();
}
}
}
}