js update

This commit is contained in:
Max 2018-03-21 13:58:55 -04:00
parent bd95950d8c
commit 85d09681fe
1 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,7 @@ function edit_d(d, to_ui) {
for (var k in d) { for (var k in d) {
if (!to_ui) { if (!to_ui) {
if (d[k] == "None") if (d[k] == "None")
new_d[k] = null; new_d[k] = "";
else else
new_d[k] = d[k]; new_d[k] = d[k];
if (k == "plot" && !d[k].length) if (k == "plot" && !d[k].length)
@ -643,6 +643,10 @@ function f_list() {
send_command("config-list", (inp.checked) ? "tsv" : ""); send_command("config-list", (inp.checked) ? "tsv" : "");
} }
function f_stop() {
send_command("rx-stop", "");
}
function f_start() { function f_start() {
var sel = document.getElementById("config_select"); var sel = document.getElementById("config_select");
if (!sel) return; if (!sel) return;