From 1226aeb1081800d690200c2251c15f4ea0dfb8ef Mon Sep 17 00:00:00 2001 From: ianmuchyri Date: Mon, 18 Mar 2024 16:15:53 +0300 Subject: [PATCH] rename functions to be widget specific Signed-off-by: ianmuchyri --- ui/web/templates/charts/linechartmodal.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/web/templates/charts/linechartmodal.html b/ui/web/templates/charts/linechartmodal.html index de78a339..29bee9d5 100644 --- a/ui/web/templates/charts/linechartmodal.html +++ b/ui/web/templates/charts/linechartmodal.html @@ -111,14 +111,18 @@
Data Source
- - @@ -340,7 +344,7 @@
Data Source
}) }); - function addRow() { + function addLineChartRow() { const uuidPattern = "{{ .UUIDPattern }}"; const table = document .getElementById("linechart-data"); @@ -368,7 +372,7 @@
Data Source
`; } - function removeRow(button) { + function removeLineChartRow(button) { const row = button.parentNode.parentNode; row.parentNode.removeChild(row); }