Skip to content

Commit

Permalink
* Fix bug #30063.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjianhua committed Nov 22, 2022
1 parent d3231b1 commit 0034de1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/module/system/css/installsmtp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#mainContent .main-col {display: block;}
18 changes: 18 additions & 0 deletions frontend/module/system/js/installsmtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ $(function()
var enableSMTP = $('#smtpForm input[type=checkbox]:checked').length > 0;
var accountRight = $('#verifyAccountBtn').attr('pass') == 'true';

if(enableSMTP)
{
$('#smtpForm').find('table').show();
$('#smtpForm').find('button[type=submit]').show();
}
else
{
$('#smtpForm').find('table').hide();
$('#smtpForm').find('button[type=submit]').hide();
}

if(enableSMTP && accountRight)
{
$('#smtpForm button[type=submit]').attr('disabled', false);
Expand All @@ -28,6 +39,13 @@ $(function()

$('#smtpForm input[type=checkbox]').change();

$('#smtpForm input[type=text]').on('change', function(event)
{
$('#verifyAccountBtn').attr('pass', 'false');
$('#verifyResult').text('');
freshSubmitBtn();
});

$('#verifyAccountBtn').on('click', function(event)
{
var settings = {};
Expand Down

0 comments on commit 0034de1

Please sign in to comment.