Skip to content

Commit

Permalink
再インストール時「SMTP ホスト」等がグレーダウンしている #846
Browse files Browse the repository at this point in the history
  • Loading branch information
seasoftjapan committed Feb 21, 2024
1 parent 3e6cf47 commit bdf547d
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 bdf547d

Please sign in to comment.