[FOLLOWUP][TASK] Automatically select the custom preset when values are changed 10/48410/3
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 30 May 2016 20:14:35 +0000 (22:14 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 3 Jun 2016 09:45:06 +0000 (11:45 +0200)
When input field is changed the checkbox is checked directly, not
after it loses the focus.

Resolves: #76365
Releases: master
Change-Id: I8673612bcd8b21d1692188c73d8501f7937c047f
Reviewed-on: https://review.typo3.org/48410
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Resources/Public/JavaScript/Install.js

index aad6583..aec0f61 100644 (file)
@@ -677,7 +677,7 @@ $(function() {
        });
 
        // automatically select the custom preset if a value in one of its input fields is changed
-       $('.t3js-custom-preset').on('change', function () {
+       $('.t3js-custom-preset').on('input', function() {
                $('#' + $(this).data('radio')).prop('checked', true);
        });
 });