diff options
Diffstat (limited to 'static/dashboard.js')
-rw-r--r-- | static/dashboard.js | 5 |
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); +} |