mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
Fixed a bug in the hover of providers graph.
When we click on a part in providers graphs, we hover an item, then we click on a random part not belonging to providers graphs, and we re-hover one part of the providers graphs, there was an undefined variable (The random click overrided it).
This commit is contained in:
parent
a1b2329a9b
commit
f3cf2f853a
1 changed files with 7 additions and 5 deletions
|
@ -220,12 +220,14 @@ function plot_top_graph(module_name, init){
|
||||||
plot = $.plot($(chartID), [barData], barOptions);
|
plot = $.plot($(chartID), [barData], barOptions);
|
||||||
|
|
||||||
/* rememeber the data for the two graph */
|
/* rememeber the data for the two graph */
|
||||||
if (plot_data_old.length>1){ // avoid adding plot_data for previous clicked pie part
|
if ((module_name == "size") || (module_name == "num")) { // Add only for the provider graph
|
||||||
plot_data_old = [];
|
if (plot_data_old.length>1){ // avoid adding plot_data for previous clicked pie part
|
||||||
plot_old = [];
|
plot_data_old = [];
|
||||||
|
plot_old = [];
|
||||||
|
}
|
||||||
|
plot_data_old.push(plot.getData());
|
||||||
|
plot_old.push(plot);
|
||||||
}
|
}
|
||||||
plot_data_old.push(plot.getData());
|
|
||||||
plot_old.push(plot);
|
|
||||||
|
|
||||||
if (can_bind){ // avoid binding two listener for provider graphs
|
if (can_bind){ // avoid binding two listener for provider graphs
|
||||||
$("#flot-bar-chart-"+module_name).unbind( "plothover.customHandler" );
|
$("#flot-bar-chart-"+module_name).unbind( "plothover.customHandler" );
|
||||||
|
|
Loading…
Reference in a new issue