Skip to content

Commit

Permalink
WP Mail SMTP v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-sakal committed Jul 17, 2024
1 parent 023e5bc commit df9e91e
Show file tree
Hide file tree
Showing 31 changed files with 1,693 additions and 1,070 deletions.
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run --silent cs
1 change: 1 addition & 0 deletions assets/images/providers/smtp2go.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions assets/js/smtp-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,19 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || ( function( document, w

app.education.rateLimitUpgrade();
} );

// Obfuscated fields
$( '.wp-mail-smtp-btn[data-clear-field]' ).on( 'click', function( e ) {
var $button = $( this );
var fieldId = $button.attr( 'data-clear-field' );
var $field = $( `#${fieldId}` );

$field.prop( 'disabled', false );
$field.attr( 'name', $field.attr( 'data-name' ) );
$field.removeAttr( 'value' );
$field.focus();
$button.remove();
} );
},

education: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/smtp-admin.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit df9e91e

Please sign in to comment.