Skip to content

Commit

Permalink
Merge pull request #29 from peckadesign/26-initForm-2
Browse files Browse the repository at this point in the history
26 Nefunkční Nette.initForm
  • Loading branch information
zipper authored Feb 13, 2020
2 parents bcba43e + 60dc237 commit b0522bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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": "3.0.4",
"version": "3.0.5",
"author": "PeckaDesign, s.r.o <support@peckadesign.cz>",
"contributors": [
"Radek Šerý <radek.sery@peckadesign.cz>",
Expand Down
4 changes: 2 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 3.0.4
* @version 3.0.5
*
* Features:
* - live validation
Expand Down Expand Up @@ -45,7 +45,7 @@

var pdForms = window.pdForms || {};

pdForms.version = '3.0.4';
pdForms.version = '3.0.5';


/**
Expand Down
2 changes: 1 addition & 1 deletion src/assets/validators/nette.ajax/pdForms.validator.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Nette.validators.PdFormsRules_ajax = function(elem, arg, val, value, callback) {
// In case of $.nette.ajax being undefined, do not validate. This may happen on page load when Nette.initForm
// is called.
if (! $ || ! $.nette || ! $.nette.ajax) {
if (typeof $ === 'undefined' || ! $.nette || ! $.nette.ajax) {
return true;
}

Expand Down

0 comments on commit b0522bf

Please sign in to comment.