Added trigger on empty value

This commit is contained in:
Chris 2015-03-05 11:03:20 +01:00
parent fe5deb68e7
commit b627bbbefb
1 changed files with 2 additions and 4 deletions

View File

@ -50,10 +50,8 @@
if (this.options.triggerCondition.indexOf('value') == 0) {
var match = this.options.triggerCondition.match(/[^[\]]+(?=])/g)
if (match) {
this.triggerConditionValue = match
this.triggerCondition = 'value'
}
this.triggerCondition = 'value'
this.triggerConditionValue = (match) ? match : ""
}
if (this.triggerCondition == 'checked' || this.triggerCondition == 'value')