Comparing version
@@ -26,3 +26,3 @@ { | ||
"contributte/recaptcha": "^3.1", | ||
"nette/di": "~2.4|~3.0.0", | ||
"nette/di": "~2.4|^3.0.0", | ||
"nette/utils": "~2.4|~3.0.0|~3.1.0|~3.2.0", | ||
@@ -29,0 +29,0 @@ "pd/utils": "^1.0" |
@@ -5,3 +5,3 @@ { | ||
"description": "Customization of netteForms for use in PeckaDesign.", | ||
"version": "3.6.2", | ||
"version": "4.0.1", | ||
"author": "PeckaDesign, s.r.o <support@peckadesign.cz>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
/** | ||
* @name pdForms | ||
* @author Radek Šerý <radek.sery@peckadesign.cz> | ||
* @version 3.6.2 | ||
* @version 4.0.1 | ||
* | ||
@@ -48,3 +48,3 @@ * Features: | ||
pdForms.version = '3.6.2'; | ||
pdForms.version = '4.0.1'; | ||
@@ -148,3 +148,3 @@ | ||
// data-nette-rules only for the first radio of given name, so we always validate that radio. | ||
var validate = e.target.type === 'radio' ? [e.target.form[e.target.name].item(0)] : [e.target]; | ||
var validate = (e.target.form[e.target.name] instanceof RadioNodeList) ? [e.target.form[e.target.name].item(0)] : [e.target]; | ||
var groupName = e.target.getAttribute('data-pdforms-validation-group'); | ||
@@ -677,3 +677,3 @@ | ||
// reason explained in pdForms.liveValidation) | ||
var elem = e.target.type === 'radio' ? e.target.form[e.target.name].item(0) : e.target; | ||
var elem = (e.target.form[e.target.name] instanceof RadioNodeList) ? e.target.form[e.target.name].item(0) : e.target; | ||
var everFocused = elem.getAttribute('data-pdforms-ever-focused'); | ||
@@ -680,0 +680,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* Lazyload of recaptcha scripts and lazy binding the validation after interaction with form (eg. focus into input or | ||
* Lazyload of recaptcha scripts and lazy binding the validation after interaction with form (e.g. focus into input or | ||
* change of radio button, etc.). This version also works with forms submitted using nette.ajax. | ||
@@ -8,0 +8,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
94974
4.42%44
2.33%1050
13.64%