Fix issue with WUX Trans Stats
This commit is contained in:
parent
d3e815ce43
commit
3263ef8b9a
|
@ -4986,11 +4986,7 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
$metaconsole_enabled = $parameters['metaconsole_enabled'];
|
||||
} else {
|
||||
// If metaconsole_enabled param is not setted then pick source configuration.
|
||||
if (defined('METACONSOLE')) {
|
||||
$metaconsole_enabled = true;
|
||||
} else {
|
||||
$metaconsole_enabled = false;
|
||||
}
|
||||
$metaconsole_enabled = is_metaconsole();
|
||||
}
|
||||
|
||||
$get_only_string_modules = false;
|
||||
|
@ -5403,14 +5399,11 @@ function ui_print_agent_autocomplete_input($parameters)
|
|||
server_name = ui.item.ip;
|
||||
}
|
||||
|
||||
|
||||
if (('.((int) $use_input_id_server).')
|
||||
|| ('.((int) $print_input_id_server).')) {
|
||||
server_id = ui.item.id_server;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//Put the name
|
||||
$(this).val(agent_name);
|
||||
|
||||
|
|
|
@ -169,6 +169,11 @@ function pandoraFlotPieCustom(
|
|||
var label_conf;
|
||||
var show_legend = true;
|
||||
|
||||
// Set default value if not come like a number.
|
||||
if (isNaN(width) === true) {
|
||||
width = 451;
|
||||
}
|
||||
|
||||
if (width <= 450) {
|
||||
show_legend = false;
|
||||
label_conf = {
|
||||
|
@ -222,6 +227,9 @@ function pandoraFlotPieCustom(
|
|||
conf_pie.series.pie.label = { show: false };
|
||||
}
|
||||
|
||||
// Avoid issues with 0 width values.
|
||||
$("#" + graph_id).width(width);
|
||||
|
||||
var plot = $.plot($("#" + graph_id), data, conf_pie);
|
||||
if (no_data == data.length) {
|
||||
$("#" + graph_id + " .overlay").remove();
|
||||
|
|
|
@ -809,6 +809,7 @@ function dashboardLoadWuxStats(settings) {
|
|||
page: settings.page,
|
||||
wux_transaction_stats: 1,
|
||||
id_agent: settings.id_agent,
|
||||
server_id: settings.server_id,
|
||||
transaction: settings.transaction,
|
||||
view_all_stats: settings.view_all_stats,
|
||||
auth_class: settings.auth_class,
|
||||
|
|
Loading…
Reference in New Issue