Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pd-forms",
"title": "pdForms",
"description": "Customization of netteForms for use in PeckaDesign.",
"version": "4.2.1",
"version": "4.2.2",
"author": "PeckaDesign, s.r.o <support@peckadesign.cz>",
"contributors": [
"Radek Šerý <radek.sery@peckadesign.cz>",
Expand Down
9 changes: 7 additions & 2 deletions src/assets/pdForms.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @name pdForms
* @author Radek Šerý <radek.sery@peckadesign.cz>
* @version 4.2.1
* @version 4.2.2
*
* Features:
* - live validation
Expand Down Expand Up @@ -45,7 +45,7 @@

var pdForms = window.pdForms || {};

pdForms.version = '4.2.1';
pdForms.version = '4.2.2';


/**
Expand Down Expand Up @@ -160,6 +160,11 @@

validate.forEach(function(elem) {
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 messages when the ajax rule is evaluated - ajax rules remove their messages
// when the ajax rule is evaluated
pdForms.removeMessages(elem, false);

var rules = JSON.parse(elem.getAttribute('data-nette-rules') || '[]');
rules = pdForms.normalizeRules(rules);

Expand Down