From b627bbbefbeafee6bbd6d1b73de40271ad797ba4 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 5 Mar 2015 11:03:20 +0100 Subject: [PATCH] Added trigger on empty value --- modules/backend/assets/js/october.triggerapi.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/backend/assets/js/october.triggerapi.js b/modules/backend/assets/js/october.triggerapi.js index c5baf837f..608d7f903 100644 --- a/modules/backend/assets/js/october.triggerapi.js +++ b/modules/backend/assets/js/october.triggerapi.js @@ -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')