Skip to content

Commit

Permalink
add settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan committed Dec 28, 2024
1 parent 7d4f93a commit a2d97a1
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function display_settings() {
}).trigger('change');
} else if (currentTab == 'mail') {
$('#row_settings_email_header div.formHeaderText').append('<div id="emailtest" class="emailtest"><?php print __('Send a Test Email');?></div>');
$('#row_settings_oauth2_header div.formHeaderText').append('<div id="oauth2token" class="emailtest"><?php print __('Generate OAuth2 Token');?></div>');
$('#row_settings_oauth2_header div.formHeaderText').append('<div id="oauth2token" class="emailtest"><?php print __('Generate OAuth2 Refresh Token');?></div>');

initMail();

Expand Down Expand Up @@ -502,9 +502,6 @@ function display_settings() {
getPresentHTTPError(data);
});
});



} else if (currentTab == 'visual') {
currentTheme = $('#selected_theme').val();

Expand Down Expand Up @@ -617,7 +614,7 @@ function initMail() {
$('#row_settings_oauth2_redirect_uri').hide();
$('#row_settings_oauth2_provider').hide();
$('#row_settings_oauth2_tenant_id').hide();
$('#row_settings_oauth2_token').hide();
$('#row_settings_oauth2_refresh_token').hide();
break;
case '1':
if (smtpPath != '') {
Expand All @@ -643,7 +640,7 @@ function initMail() {
$('#row_settings_oauth2_redirect_uri').hide();
$('#row_settings_oauth2_provider').hide();
$('#row_settings_oauth2_tenant_id').hide();
$('#row_settings_oauth2_token').hide();
$('#row_settings_oauth2_refresh_token').hide();
break;
case '2':
$('#settings_sendmail_path').val('');
Expand All @@ -659,7 +656,7 @@ function initMail() {
$('#row_settings_oauth2_redirect_uri').hide();
$('#row_settings_oauth2_provider').hide();
$('#row_settings_oauth2_tenant_id').hide();
$('#row_settings_oauth2_token').hide();
$('#row_settings_oauth2_refresh_token').hide();
$('#row_settings_smtp_header').show();
$('#row_settings_smtp_host').show();
$('#row_settings_smtp_port').show();
Expand Down Expand Up @@ -688,7 +685,7 @@ function initMail() {
$('#row_settings_oauth2_redirect_uri').show();
$('#row_settings_oauth2_provider').show();
$('#row_settings_oauth2_tenant_id').show();
$('#row_settings_oauth2_token').show();
$('#row_settings_oauth2_refresh_token').show();
break;
}
}
Expand Down

0 comments on commit a2d97a1

Please sign in to comment.