1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 11:20:19 +00:00

No reload per default, just send JsonDom

This commit is contained in:
2020-06-23 20:34:05 +02:00
parent 81366af7f1
commit eec13e4934
6 changed files with 901 additions and 706 deletions

11
data/js/controls.js vendored
View File

@ -232,6 +232,11 @@ function start() {
var center = "";
switch (data.type) {
case UI_INITIAL_GUI:
// Clear current elements
$("#row").html("");
$("#tabsnav").html("");
$("#tabscontent").html("");
if (data.sliderContinuous) {
sliderContinuous = data.sliderContinuous;
}
@ -242,9 +247,9 @@ function start() {
handleEvent(fauxEvent);
});
break;
case UI_RELOAD:
window.location.reload();
break;
case UI_RELOAD:
window.location.reload();
break;
case UI_TITEL:
document.title = data.label;