|
@ -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)--> |
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------
|
|
|
// ---------------------------------------------------------------------
|
|
|