mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Logic error. Fixes #1692
This commit is contained in:
parent
94cbe93e8c
commit
205d122dce
@ -25,7 +25,7 @@
|
||||
if (this.options.triggerCondition.indexOf('value') == 0) {
|
||||
var match = this.options.triggerCondition.match(/[^[\]]+(?=])/g)
|
||||
this.triggerCondition = 'value'
|
||||
this.triggerConditionValue = (match) ? match : ""
|
||||
this.triggerConditionValue = (match) ? match : [""]
|
||||
}
|
||||
|
||||
this.triggerParent = this.options.triggerClosestParent !== undefined
|
||||
|
2
modules/system/assets/ui/storm-min.js
vendored
2
modules/system/assets/ui/storm-min.js
vendored
@ -2891,7 +2891,7 @@ throw new Error('Trigger action is not specified.')
|
||||
this.triggerCondition=this.options.triggerCondition
|
||||
if(this.options.triggerCondition.indexOf('value')==0){var match=this.options.triggerCondition.match(/[^[\]]+(?=])/g)
|
||||
this.triggerCondition='value'
|
||||
this.triggerConditionValue=(match)?match:""}
|
||||
this.triggerConditionValue=(match)?match:[""]}
|
||||
this.triggerParent=this.options.triggerClosestParent!==undefined?$el.closest(this.options.triggerClosestParent):undefined
|
||||
if(this.triggerCondition=='checked'||this.triggerCondition=='unchecked'||this.triggerCondition=='value'){$(document).on('change',this.options.trigger,$.proxy(this.onConditionChanged,this))}
|
||||
var self=this
|
||||
|
Loading…
x
Reference in New Issue
Block a user