Comparing version
@@ -5,3 +5,3 @@ { | ||
"description": "Customization of netteForms for use in PeckaDesign.", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"author": "PeckaDesign, s.r.o <support@peckadesign.cz>", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
/** | ||
* @name pdForms | ||
* @author Radek Šerý <radek.sery@peckadesign.cz> | ||
* @version 4.1.2 | ||
* @version 4.1.3 | ||
* | ||
@@ -48,3 +48,3 @@ * Features: | ||
pdForms.version = '4.1.2'; | ||
pdForms.version = '4.1.3'; | ||
@@ -163,7 +163,2 @@ | ||
if (elem.getAttribute('data-pdforms-ever-focused')) { | ||
// assumes the input is valid, therefore removing all messages except those associated with ajax rules; this | ||
// prevents flashing of message, when ajax rule is evaluated - ajax rules removes their messages when the ajax | ||
// rule is evaluated | ||
pdForms.removeMessages(elem, false); | ||
var rules = JSON.parse(elem.getAttribute('data-nette-rules') || '[]'); | ||
@@ -630,2 +625,7 @@ rules = pdForms.normalizeRules(rules); | ||
Nette.validateControl = function(elem, rules, onlyCheck, value, emptyOptional) { | ||
// assumes the input is valid, therefore removing all messages except those associated with ajax rules; this | ||
// prevents flashing of message, when ajax rule is evaluated - ajax rules removes their messages when the ajax | ||
// rule is evaluated | ||
pdForms.removeMessages(elem, false); | ||
elem = elem.tagName ? elem : elem[0]; // RadioNodeList | ||
@@ -632,0 +632,0 @@ |
91742
-0.01%