[BUGFIX] Validation in formengine without leaving field 75/42075/2
authorFrank Nägler <frank.naegler@typo3.org>
Tue, 28 Jul 2015 21:03:16 +0000 (23:03 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 28 Jul 2015 21:39:17 +0000 (23:39 +0200)
Fix validation problem for input fields.

Resolves: #68599
Releases: master
Change-Id: I8e4f77d7c2b68d2f1e36ef52ad3bef3bf0d51a58
Reviewed-on: http://review.typo3.org/42075
Reviewed-by: Josef Glatz <jousch@gmail.com>
Tested-by: Josef Glatz <jousch@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js

index da07cc9..4642bf7 100644 (file)
@@ -144,6 +144,7 @@ define('TYPO3/CMS/Backend/FormEngineValidation', ['jquery', 'TYPO3/CMS/Backend/F
                $humanReadableField.on('change', function() {
                        FormEngineValidation.updateInputField($(this).attr('name'));
                });
+               $humanReadableField.on('keyup', FormEngineValidation.validate);
 
                $checkboxField.data('main-field', fieldName);
                $checkboxField.data('config', config);