| @@ -39,14 +39,14 @@ | ||
| 39 | 39 | return; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if ( 'frm-send-test-email' === e.target.id ) { |
| 43 | - showSendTestEmailModal( e ); | |
| 43 | + showSendTestEmailModal(); | |
| 44 | 44 | return; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | if ( 'frm-send-test-email-btn' === e.target.id ) { |
| 48 | - handleClickSendTestEmailBtn( e ); | |
| 48 | + handleClickSendTestEmailBtn(); | |
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | function handleClickChooseEmailStyle( e ) { |
| @@ -57,13 +57,13 @@ | ||
| 57 | 57 | |
| 58 | 58 | const styleEl = e.target.closest( '.frm-email-style' ); |
| 59 | 59 | styleEl.classList.add( 'frm-email-style--selected' ); |
| 60 | 60 | |
| 61 | - const styleKey = styleEl.dataset.styleKey; | |
| 61 | + const { styleKey } = styleEl.dataset; | |
| 62 | 62 | document.getElementById( 'frm-email-style-value' ).value = styleKey; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - function showSendTestEmailModal( e ) { | |
| 65 | + function showSendTestEmailModal() { | |
| 66 | 66 | if ( ! globalVars.sendTestEmailModal ) { |
| 67 | 67 | globalVars.sendTestEmailModal = frmAdminBuild.initModal( '#frm-send-test-email-modal', '400px' ); |
| 68 | 68 | } |
| 69 | 69 | |
| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | |
| 70 | 70 | globalVars.sendTestEmailModal.dialog( 'open' ); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - function handleClickSendTestEmailBtn( e ) { | |
| 73 | + function handleClickSendTestEmailBtn() { | |
| 74 | 74 | const emailInput = document.getElementById( 'frm-test-email-address' ); |
| 75 | 75 | const resultEl = document.getElementById( 'frm-send-test-email-result' ); |
| 76 | 76 | |
| 77 | 77 | const showResult = ( msg, success ) => { |