Skip to content

Releases: nette/forms

Released version 2.3.3

23 Aug 14:25
@dg dg
Compare
Choose a tag to compare
  • FormMacros: added support for <label n:name /> Checkbox label with caption rendering
  • CheckboxList, RadioList: fixed rendering of <label n:name>
  • netteForms.js: fixed toggle in IE < 9
  • netteForms.js: works only with Nette forms #82

For the details you can have a look at the diff.

Released version 2.3.2

23 Aug 14:23
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: toggleControl() binds events on all inputs #75
  • netteForms.js: fixed getValue for radio list #73 and multi select box
  • FormMacros: <label n:name></label> is rendered without caption, fixes 6d16631
  • Form::fireEvents() calls onError even after last onSuccess handler
  • RadioList & CheckboxList: getControlPart() normalizes key type #76 #78

For the details you can have a look at the diff.

Released version 2.2.6

23 Aug 14:21
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: toggleControl() binds events on all inputs #75
  • netteForms.js: fixed getValue for radio list #73 and multi select box
  • Form::fireEvents() calls onError even after last onSuccess handler
  • RadioList & CheckboxList: getControlPart() normalizes key type #76 #78
  • netteForms.js: used form.elements.namedItem(…) instead of form.elements[…] #72

For the details you can have a look at the diff.

Released version 2.3.1

23 Aug 14:22
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: used form.elements.namedItem(…) instead of form.elements[…] #72
  • netteForms: supports Common.JS and AMD loading #69
  • FormMacros: added support for <button>
  • FormMacros: empty <label n:name /> displays caption, as {label /}

For the details you can have a look at the diff.

Released version 2.2.5

23 Aug 14:20
@dg dg
Compare
Choose a tag to compare
  • netteForms.js: fixed bug in toggleControl from 8871974
  • netteForms.js: Fixed "Uncaught TypeError: Cannot read property 'tagName' of undefined"
  • netteForms.js: validator 'float' converts value to float, 'url' prepends 'http://' nette/nette#1430 nette/nette#1462
  • netteForms.js: ignore fieldsets (and eventually other non-control elements) in form.elements
  • netteForms.js: add webalize() support for ô ä ľ characters
  • netteForms.js: fixed length validation on checkbox list with exactly 1 item #59
  • netteForms.js: validator 'filled' for [] returns false
  • netteForms.js: textarea is not trimmed
  • DefaultFormRenderer: automatically sets setOption('rendered', TRUE)
  • Helpers: fixed quirky htmlspecialchars in PHP 5.6

For the details you can have a look at the diff.

Released version 2.3.0

31 Jan 14:42
@dg dg
Compare
Choose a tag to compare
  • fixed some limitations of netteForms.js
  • TextBase: input is not silently truncated to max-length
  • TextBase::addFilter() is processed during validation, added Rules::addFilter()
  • now you can add filters to conditions $input->addCondition(...)->addFilter(...)
  • to Container::onValidate callbacks are passed values via second parameter
  • added bridge for Nette DI
  • internal filtering methods like Nette\Forms\Controls\TextBase::filterFloat was removed
  • internal validation methods like Nette\Forms\Controls\TextBase::validateFloat was moved to Nette\Forms\Validator, as well as Rules::$defaultMessages
  • Buttons and Hidden fields are generated without HTML ID. Relying on autogenerated ID is very bad, if you want ID, set it via setHtmlId()
  • RadioList items are generated without ID too. You can enable it via $radioList->generateId = TRUE. But again: set you base ID via setHtmlId()
  • DefaultFormRenderer adds classes to inputs & label only during rendering process (BC break)

Released version 2.2.4

30 Dec 10:19
@dg dg
Compare
Choose a tag to compare
  • BaseControl: allow passing objects to translator in control
  • netteForms.js: getValue returns bool for checkbox
  • bower: excluded examples folder

For the details you can have a look at the diff.

Released version 2.2.3

30 Dec 10:18
@dg dg
Compare
Choose a tag to compare
  • CsrfProtection: token is expired after regenerateId() (i.e. after logout) [Closes #36]
  • CSRF: better error message
  • CsrfProtection: ignores setValue(), is not erased by Form::setValues() [Closes #39][Closes #40]
  • RadioList: added item label prototype [fixes #31]
  • Container: added addMultiUpload()
  • TextBase: added setMaxLength()
  • TextInput: removed empty value=""
  • TextBase: fixed setEmptyValue() and space at the end of the string [Closes #35]
  • Latte: Fixed $formContainer recover after end of formContainer macro [Closes #43]
  • netteforms.js: Change order of showing error message and focusing element. In Firefox element lost focus when alert is invoked.

For the details you can have a look at the diff.

Released version 2.2.2

28 Aug 11:44
@dg dg
Compare
Choose a tag to compare
  • fixed erasing of manually added errors via addError
  • fixed getHttpData() for multiple file uploads
  • Latte: prettier output formating

For the details you can have a look at the diff.

Released version 2.2.1

24 Jun 12:26
@dg dg
Compare
Choose a tag to compare
  • netteForms: toggle related event handler is added only once
  • some fixes

For the details about the changes you can have a look at the Github diff.