vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

Fix validation problem in Nette 2.4 #129

Closed venca-x closed 8 years ago

venca-x commented 8 years ago

Issue: https://github.com/vojtech-dobes/nette.ajax.js/issues/128


Problem is in validation in component:

$form->addInteger('hours', '') ->setRequired(TRUE) ->addRule(Form::RANGE, 'Zadejte počet hodin (%d až %d)', array(0, 99))
->setAttribute('class', 'form-control')
->setAttribute('placeholder', 'Počet hodin'); This rule is never call.

When is remove from form class ajax validation is OK.

radekdostal commented 8 years ago

ping @vojtech-dobes

landsman commented 8 years ago

ping @vojtech-dobes :)

vojtech-dobes commented 8 years ago

My apologies and thanks for the update!