Update ui.js

Updates for changing/selecting telnet ports
pull/205/head
Alex 8 years ago committed by GitHub
parent 563957f2d3
commit 143eb24c24
  1. 16
      html/ui.js

@ -302,6 +302,22 @@ function getWifiInfo() {
function(s, st) { window.setTimeout(getWifiInfo, 1000); }); function(s, st) { window.setTimeout(getWifiInfo, 1000); });
} }
//===== Telnet info
function showTelnetInfo(data) {
Object.keys(data).forEach(function(v) {
setEditToClick("telnet-"+v, data[v]);
});
$("#telnet-spinner").setAttribute("hidden", "");
$("#telnet-table").removeAttribute("hidden");
currAp = data.ssid;
}
function getTelnetInfo() {
ajaxJson('GET', "/telnet/info", showTelnetInfo,
function(s, st) { window.setTimeout(getTelnetInfo, 1000); });
}
//===== System info //===== System info
function showSystemInfo(data) { function showSystemInfo(data) {

Loading…
Cancel
Save