Merge branch 'ent-8452-Custom-graphs-Filtro-Vertical-bars-no-funciona' into 'develop'

Ent 8452 custom graphs filtro vertical bars no funciona

See merge request artica/pandorafms!4643
This commit is contained in:
vgilc 2022-01-25 09:24:10 +00:00
commit 372a84c9b5
1 changed files with 20 additions and 14 deletions

View File

@ -454,20 +454,26 @@ if ($view_graph) {
data['threshold'] = 1;
}
$.ajax({
type: "POST",
url: "ajax.php",
dataType: "html",
data: data,
success: function (data) {
document.getElementById("div-container").innerHTML = "";
$("#spinner_loading").hide();
$("#div-container").append(data);
},
error: function (data) {
console.error("Fatal error")
}
});
(function (stacked) {
$.ajax({
type: "POST",
url: "ajax.php",
dataType: "html",
data: data,
success: function (data) {
if (stacked === "<?php echo CUSTOM_GRAPH_VBARS; ?>") {
document.getElementById("div-container").classList.add('w100p', 'height_600px');
}
document.getElementById("div-container").innerHTML = "";
$("#spinner_loading").hide();
$("#div-container").append(data);
},
error: function (data) {
console.error("Fatal error")
}
});
})(data['stacked']);
});