Browse Source

rfbridge: fix webui codes parsing

rules-rpn
Max Prokhorov 5 years ago
parent
commit
61411b2002
14 changed files with 15376 additions and 15364 deletions
  1. +2
    -0
      .gitattributes
  2. BIN
      code/espurna/data/index.all.html.gz
  3. BIN
      code/espurna/data/index.light.html.gz
  4. BIN
      code/espurna/data/index.rfbridge.html.gz
  5. BIN
      code/espurna/data/index.rfm69.html.gz
  6. BIN
      code/espurna/data/index.sensor.html.gz
  7. BIN
      code/espurna/data/index.small.html.gz
  8. +2227
    -2225
      code/espurna/static/index.all.html.gz.h
  9. +3003
    -3002
      code/espurna/static/index.light.html.gz.h
  10. +2197
    -2195
      code/espurna/static/index.rfbridge.html.gz.h
  11. +3185
    -3184
      code/espurna/static/index.rfm69.html.gz.h
  12. +2602
    -2601
      code/espurna/static/index.sensor.html.gz.h
  13. +2151
    -2150
      code/espurna/static/index.small.html.gz.h
  14. +9
    -7
      code/html/custom.js

+ 2
- 0
.gitattributes View File

@ -0,0 +1,2 @@
*.gz.h -diff -merge
*.gz.h linguist-generated=true

BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


+ 2227
- 2225
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 3003
- 3002
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 2197
- 2195
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 3185
- 3184
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 2602
- 2601
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 2151
- 2150
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 9
- 7
code/html/custom.js View File

@ -1219,19 +1219,21 @@ function processData(data) {
if ("rfb" === key) { if ("rfb" === key) {
var rfb = data.rfb; var rfb = data.rfb;
var size = data.size;
var start = data.start;
var on = rfb["on"];
var off = rfb["off"];
var size = rfb.size;
var start = rfb.start;
for (var i=start; i<start+size; ++i) {
$("input[name='rfbcode'][data-id='" + i + "'][data-status='1']").val(on[i]);
$("input[name='rfbcode'][data-id='" + i + "'][data-status='0']").val(off[i]);
var processOn = ((rfb.on !== undefined) && (rfb.on.length > 0));
var processOff = ((rfb.off !== undefined) && (rfb.off.length > 0));
for (var i=0; i<size; ++i) {
if (processOn) $("input[name='rfbcode'][data-id='" + (i + start) + "'][data-status='1']").val(rfb.on[i]);
if (processOff) $("input[name='rfbcode'][data-id='" + (i + start) + "'][data-status='0']").val(rfb.off[i]);
} }
return; return;
} }
<!-- endRemoveIf(!rfbridge)--> <!-- endRemoveIf(!rfbridge)-->
// --------------------------------------------------------------------- // ---------------------------------------------------------------------


Loading…
Cancel
Save