mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-21 22:50:55 +00:00
Update controls.js
This commit is contained in:
parent
37bbb9208d
commit
acaf6898fd
7
data/js/controls.js
vendored
7
data/js/controls.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user