aboutsummaryrefslogtreecommitdiffstats
path: root/static/dashboard.js
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-20 11:23:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-20 11:23:53 +0200
commite42edddd33382855202ff2f17e6b77d65f6ad152 (patch)
treec26c0f5b48e66a3f36380bcdfb1ecd60c7453234 /static/dashboard.js
parent7208269be13d0ee27fd696fcae31330e2a78b969 (diff)
downloadodr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.tar.gz
odr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.tar.bz2
odr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.zip
Show RC params in dashboard
Diffstat (limited to 'static/dashboard.js')
-rw-r--r--static/dashboard.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/dashboard.js b/static/dashboard.js
new file mode 100644
index 0000000..6eb8274
--- /dev/null
+++ b/static/dashboard.js
@@ -0,0 +1,5 @@
+async function btn_dash_update(element_clicked, module, param) {
+ let value = element_clicked.parentElement.children[0].value;
+ let data = {'module': module, 'param': param, 'value': value};
+ await post('/api/set_rc', data);
+}