Skip to content

Commit c1ceee1

Browse files
committed
afterUpdateGroupCondition event (#113)
1 parent 5cabcdc commit c1ceee1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ QueryBuilder.prototype.updateGroupCondition = function(group) {
354354
$this.prop('checked', $this.val() === group.condition);
355355
$this.parent().toggleClass('active', $this.val() === group.condition);
356356
});
357+
358+
this.trigger('afterUpdateGroupCondition', group);
357359
};
358360

359361
/**
@@ -534,7 +536,7 @@ QueryBuilder.prototype.updateRuleValue = function(rule) {
534536
this.setRuleValue(rule, rule.value);
535537
}
536538

537-
this.trigger('afterUpdateRuleValue', rule, rule.value);
539+
this.trigger('afterUpdateRuleValue', rule);
538540
};
539541

540542
/**

0 commit comments

Comments
 (0)