mirror of
https://github.com/s00500/ESPUI.git
synced 2026-01-16 18:46:21 +00:00
undo more whitespace
This commit is contained in:
11
data/js/controls.js
vendored
11
data/js/controls.js
vendored
@@ -598,6 +598,7 @@ function start() {
|
|||||||
FileDisplayUploadFile(data);
|
FileDisplayUploadFile(data);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update messages change the value/style of a component without adding new HTML
|
* Update messages change the value/style of a component without adding new HTML
|
||||||
*/
|
*/
|
||||||
@@ -675,7 +676,7 @@ function start() {
|
|||||||
case UPDATE_FILEDISPLAY:
|
case UPDATE_FILEDISPLAY:
|
||||||
FileDisplayUploadFile(data);
|
FileDisplayUploadFile(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UI_FRAGMENT:
|
case UI_FRAGMENT:
|
||||||
// console.info("Starting Fragment Processing");
|
// console.info("Starting Fragment Processing");
|
||||||
let FragmentLen = data.length;
|
let FragmentLen = data.length;
|
||||||
@@ -699,7 +700,7 @@ function start() {
|
|||||||
}
|
}
|
||||||
let control = data.control;
|
let control = data.control;
|
||||||
StopFragmentAssemblyTimer(data.control.id);
|
StopFragmentAssemblyTimer(data.control.id);
|
||||||
|
|
||||||
// is this the first fragment?
|
// is this the first fragment?
|
||||||
if(0 === FragementOffset)
|
if(0 === FragementOffset)
|
||||||
{
|
{
|
||||||
@@ -714,20 +715,20 @@ function start() {
|
|||||||
// console.info("Done Fragment Processing");
|
// console.info("Done Fragment Processing");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not first fragment. are we assembling this control?
|
// not first fragment. are we assembling this control?
|
||||||
if("undefined" === typeof controlAssemblyArray[control.id])
|
if("undefined" === typeof controlAssemblyArray[control.id])
|
||||||
{
|
{
|
||||||
// it looks like we missed the first fragment. Start the control over
|
// it looks like we missed the first fragment. Start the control over
|
||||||
console.error("Missing first fragment for control: " + control.id);
|
console.error("Missing first fragment for control: " + control.id);
|
||||||
StartFragmentAssemblyTimer(control.id);
|
StartFragmentAssemblyTimer(control.id);
|
||||||
let TotalRequest = JSON.stringify({ 'id': control.id, 'offset': 0 });
|
let TotalRequest = JSON.stringify({ 'id' : control.id, 'offset' : 0 });
|
||||||
websock.send("uifragmentok:" + 0 + ": " + TotalRequest + ":");
|
websock.send("uifragmentok:" + 0 + ": " + TotalRequest + ":");
|
||||||
// console.info("asked for fragment " + TotalRequest);
|
// console.info("asked for fragment " + TotalRequest);
|
||||||
// console.info("Done Fragment Processing");
|
// console.info("Done Fragment Processing");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// is this the expected next fragment
|
// is this the expected next fragment
|
||||||
if(FragementOffset !== controlAssemblyArray[control.id].offset)
|
if(FragementOffset !== controlAssemblyArray[control.id].offset)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user