Auto-expand variation description when variation is selected

This commit is contained in:
Raphael Michel
2019-07-16 11:53:43 +02:00
parent b67c684969
commit c1e2fb36ba

View File

@@ -144,6 +144,11 @@ $(function () {
$('.toggle-variation-description').click(function () {
$(this).parent().find('.addon-variation-description').slideToggle();
});
$('input[type=radio][description]').change(function () {
if ($(this).prop("checked")) {
$(this).parent().parent().find('.addon-variation-description').stop().slideDown();
}
});
// Copy answers
$(".js-copy-answers").click(function (e) {