mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
fixed visualization of vertical bars graph when switching values on graph viewer
This commit is contained in:
parent
49bf10f0f8
commit
a0391e3ef2
@ -454,12 +454,19 @@ if ($view_graph) {
|
|||||||
data['threshold'] = 1;
|
data['threshold'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(function (stacked) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "ajax.php",
|
url: "ajax.php",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
data: data,
|
data: data,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
console.log("////////////");
|
||||||
|
console.log(typeof stacked);
|
||||||
|
if (stacked === "<?php echo CUSTOM_GRAPH_VBARS; ?>") {
|
||||||
|
document.getElementById("div-container").classList.add('w100p', 'height_600px');
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("div-container").innerHTML = "";
|
document.getElementById("div-container").innerHTML = "";
|
||||||
$("#spinner_loading").hide();
|
$("#spinner_loading").hide();
|
||||||
$("#div-container").append(data);
|
$("#div-container").append(data);
|
||||||
@ -468,6 +475,7 @@ if ($view_graph) {
|
|||||||
console.error("Fatal error")
|
console.error("Fatal error")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
})(data['stacked']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user