PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | js/admin/settings.js +5 -5 6.26 → trunk View file →
@@ -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 ) => {