From 453fcb631a14afbc6130f51418542e3105815fc0 Mon Sep 17 00:00:00 2001 From: Anton Shapka <66ton99@gmail.com> Date: Mon, 1 Feb 2016 00:17:00 +0200 Subject: [PATCH] Deprecation of setDefaultOptions; and RepeatedType error reporting #86 --- Resources/public/js/FpJsFormValidator.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Resources/public/js/FpJsFormValidator.js b/Resources/public/js/FpJsFormValidator.js index 2f346aa..cc4dfee 100644 --- a/Resources/public/js/FpJsFormValidator.js +++ b/Resources/public/js/FpJsFormValidator.js @@ -807,6 +807,9 @@ var FpJsFormValidator = new function () { * @param {FpJsFormElement} element */ this.getErrorPathElement = function (element) { + if (element.type == 'repeated') { + return this.findDomElement({id: element.id+'_first', name: element.name+'_first'}).jsFormValidator; + } if (!element.bubbling) { return element; } else {