Update index.php (#6539)

This commit is contained in:
Alex
2023-01-20 15:01:11 -07:00
committed by GitHub
parent c5ebafa893
commit 7d22b514a4
+2
View File
@@ -369,6 +369,7 @@
draggable: ".widget", draggable: ".widget",
preventOnFilter: true, preventOnFilter: true,
ghostClass: 'ghost', ghostClass: 'ghost',
/*
onChange: function (evt) { onChange: function (evt) {
//check if chart exists //check if chart exists
let chart_status = Chart.getChart(evt.item.id + "_chart"); let chart_status = Chart.getChart(evt.item.id + "_chart");
@@ -383,6 +384,7 @@
chart = new Chart(context, config); chart = new Chart(context, config);
} }
}, },
*/
onSort: function (evt) { onSort: function (evt) {
let widget_ids = document.querySelectorAll("#widgets > div[id]"); let widget_ids = document.querySelectorAll("#widgets > div[id]");
let widget_ids_list = []; let widget_ids_list = [];