events: missing widget "change" event migrations
This commit is contained in:
parent
93d8391b5b
commit
bc9cef5e9d
2 changed files with 2 additions and 3 deletions
|
|
@ -115,13 +115,13 @@ module.exports = class Push extends _widgets_base {
|
|||
this.state = 1
|
||||
if (options.send) this.sendValue(v)
|
||||
this.lastChanged = 'state'
|
||||
if (options.sync) this.widget.trigger({type:'change',id:this.getProp('id'),widget:this, linkId:this.getProp('linkId'),options:options})
|
||||
if (options.sync) this.changed(options)
|
||||
} else if (v===this.getProp('off') || (this.getProp('off') != null && v === this.getProp('off').value && v !== undefined)) {
|
||||
this.classHolders.removeClass('on')
|
||||
this.state = 0
|
||||
if (options.send) this.sendValue(v)
|
||||
this.lastChanged = 'state'
|
||||
if (options.sync) this.widget.trigger({type:'change',id:this.getProp('id'),widget:this, linkId:this.getProp('linkId'),options:options})
|
||||
if (options.sync) this.changed(options)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,7 +164,6 @@ module.exports = class Formula extends _widgets_base {
|
|||
|
||||
this.showValue()
|
||||
|
||||
if (e.options.sync && this.conditionState) this.widget.trigger({type: 'change',id: this.getProp('id'),widget: this, linkId: this.getProp('linkId'), options: e.options})
|
||||
if (e.options.sync && this.conditionState) this.changed(e.options)
|
||||
if (e.options.send && this.conditionState) this.sendValue()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue