Skip to content
Snippets Groups Projects
Commit a18050fc authored by Markus Klein's avatar Markus Klein Committed by Frank Nägler
Browse files

[TASK] Automatically select the custom preset when values are changed

If the user changes a field in a custom preset in the Install Tool
the custom preset's radio box must be selected too.

Resolves: #76365
Releases: master, 7.6
Change-Id: Iee499d61574e88ef094d690bea7ff827aa7507dc
Reviewed-on: https://review.typo3.org/48394


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent 3fbf4ba3
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@
type="input"
name="install[values][{feature.name}][{preset.name}][{configurationKey}]"
value="{configurationValue}"
class="form-control"
class="form-control t3js-custom-preset"
data-radio="t3-install-tool-configuration-context-custom"
/>
</div>
</div>
......
......@@ -33,7 +33,8 @@
type="input"
name="install[values][{feature.name}][{preset.name}][{configurationKey}]"
value="{configurationValue}"
class="form-control"
class="form-control t3js-custom-preset"
data-radio="t3-install-tool-configuration-image-custom"
/>
</div>
</div>
......
......@@ -4,13 +4,13 @@
<input
type="radio"
class="t3-install-tool-configuration-radio"
id="t3-install-tool-configuration-charset-custom"
id="t3-install-tool-configuration-mail-custom"
name="install[values][{feature.name}][enable]"
value="{preset.name}"
{f:if(condition:'{preset.isActive}', then:'checked="checked"')}
/>
<label
for="t3-install-tool-configuration-charset-custom"
for="t3-install-tool-configuration-mail-custom"
class="t3-install-tool-configuration-radio-label"
>
<strong>
......@@ -33,7 +33,8 @@
type="input"
name="install[values][{feature.name}][{preset.name}][{configurationKey}]"
value="{configurationValue}"
class="form-control"
class="form-control t3js-custom-preset"
data-radio="t3-install-tool-configuration-mail-custom"
/>
</div>
</div>
......
......@@ -675,4 +675,9 @@ $(function() {
TYPO3.Install.Scrolling.handleButtonScrolling();
}, 50);
});
// automatically select the custom preset if a value in one of its input fields is changed
$('.t3js-custom-preset').on('change', function () {
$('#' + $(this).data('radio')).prop('checked', true);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment