1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 17:40:54 +00:00

Update controls.js

This commit is contained in:
ericBcreator 2020-10-01 18:49:18 +02:00 committed by GitHub
parent 37bbb9208d
commit acaf6898fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
data/js/controls.js vendored
View File

@ -557,7 +557,7 @@ function start() {
case UI_TAB:
$("#tabsnav").append(
"<li><a href='#tab" + data.id + "'>" + data.value + "</a></li>"
"<li><a onmouseup='tabclick(" + data.id + ")' href='#tab" + data.id + "'>" + data.value + " </a></li>"
);
$("#tabscontent").append("<div id='tab" + data.id + "'></div>");
@ -814,6 +814,11 @@ function textchange(number) {
websock.send("tvalue:" + val + ":" + number);
}
function tabclick(number) {
var val = $("#tab" + number).val();
websock.send("tabvalue:" + val + ":" + number);
}
function selectchange(number) {
var val = $("#select" + number).val();
websock.send("svalue:" + val + ":" + number);