From cf9bbb2ac7801c497530aa60a471e280f38ab23a Mon Sep 17 00:00:00 2001 From: Scrounger Date: Wed, 21 Aug 2019 14:14:29 +0200 Subject: [PATCH] bug fix --- admin/index_m.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/index_m.js b/admin/index_m.js index ac7d90f..a459c90 100644 --- a/admin/index_m.js +++ b/admin/index_m.js @@ -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`); }