Skip to content

Commit

Permalink
Merge pull request #847 from EC-CUBE/seasoft-846
Browse files Browse the repository at this point in the history
再インストール時「SMTP ホスト」等がグレーダウンしている #846
  • Loading branch information
dotani1111 authored Feb 26, 2024
2 parents 1346d10 + a28c280 commit 30b11a1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions html/install/templates/step1.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,17 @@
<script type="text/javascript">
$(function() {
$('.option').hide();
if ($('input[name=mail_backend]').val() == 'smtp') {
$('.smtp').attr('disabled', false);
} else {
$('.smtp').attr('disabled', true);
}
changeSmtpDisabled();
$('#options').click(function() {
$('.option').slideToggle();
});
$('input[name=mail_backend]').change(function() {
if ($(this).val() == 'smtp') {
$('.smtp').attr('disabled', false);
} else {
$('.smtp').attr('disabled', true);
}
changeSmtpDisabled();
});
function changeSmtpDisabled() {
let disabled = $('input[name=mail_backend]:checked').val() != 'smtp';
$('.smtp').attr('disabled', disabled);
}
});
</script>
<!--{strip}-->
Expand Down

0 comments on commit 30b11a1

Please sign in to comment.