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
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue