mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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:
commit
372a84c9b5
@ -454,20 +454,26 @@ if ($view_graph) {
|
|||||||
data['threshold'] = 1;
|
data['threshold'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
(function (stacked) {
|
||||||
type: "POST",
|
$.ajax({
|
||||||
url: "ajax.php",
|
type: "POST",
|
||||||
dataType: "html",
|
url: "ajax.php",
|
||||||
data: data,
|
dataType: "html",
|
||||||
success: function (data) {
|
data: data,
|
||||||
document.getElementById("div-container").innerHTML = "";
|
success: function (data) {
|
||||||
$("#spinner_loading").hide();
|
if (stacked === "<?php echo CUSTOM_GRAPH_VBARS; ?>") {
|
||||||
$("#div-container").append(data);
|
document.getElementById("div-container").classList.add('w100p', 'height_600px');
|
||||||
},
|
}
|
||||||
error: function (data) {
|
|
||||||
console.error("Fatal error")
|
document.getElementById("div-container").innerHTML = "";
|
||||||
}
|
$("#spinner_loading").hide();
|
||||||
});
|
$("#div-container").append(data);
|
||||||
|
},
|
||||||
|
error: function (data) {
|
||||||
|
console.error("Fatal error")
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(data['stacked']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user