Fix Repeater max & min client side validation when using groups (#3953)

Credit to @c2webstudio.
This commit is contained in:
Christos Christou 2018-12-03 21:53:12 +02:00 committed by Luke Towers
parent 7a277b4b9c
commit 9f63ad2739

View File

@ -84,6 +84,7 @@
}
Repeater.prototype.clickAddGroupButton = function(ev) {
var $self = this;
var templateHtml = $('> [data-group-palette-template]', this.$el).html(),
$target = $(ev.target),
$form = this.$el.closest('form'),
@ -107,6 +108,7 @@
$form.one('ajaxComplete', function() {
$loadContainer.loadIndicator('hide')
$self.togglePrompt()
})
})