Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrounger committed Aug 21, 2019
1 parent 462426b commit cf9bbb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/index_m.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,8 +1294,8 @@ async function createJavascript() {
autoScript = autoScript.concat(`${varName}.getState = ${createGetFunction(linkedId, `getState("${linkedId}")`)}\n`);

if (linkedObject.common.write && linkedObject.common.write === true || Checkbox.generateSetStateForReadOnly.is(":checked")) {
autoScript = autoScript.concat(`${varName}.setState = ${createSetFunction(linkedId,'val, ack', `setState("${linkedId}", val, ack)`)}\n`);
autoScript = autoScript.concat(`${varName}.setStateDelayed = ${createSetFunction(linkedId,'val, ack, delay', `setStateDelayed("${linkedId}", val, ack, delay)`)}\n`);
autoScript = autoScript.concat(`${varName}.setState = ${createSetFunction(linkedId,'val, ack=false', `setState("${linkedId}", val, ack)`)}\n`);
autoScript = autoScript.concat(`${varName}.setStateDelayed = ${createSetFunction(linkedId,'val, delay, ack=false', `setStateDelayed("${linkedId}", val, ack, delay)`)}\n`);
}
autoScript = autoScript.concat(`${varName}.getObject = ${createGetFunction(linkedId, `getObject("${linkedId}")`)}\n`);
}
Expand Down

0 comments on commit cf9bbb2

Please sign in to comment.