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/formidable_admin_global.js +4 -4 6.29 → trunk View file →
@@ -2,9 +2,9 @@
2 2
3 3 jQuery( document ).ready( function() {
4 4 const installLink = document.getElementById( 'frm_install_link' );
5 5
6 - if ( installLink !== null ) {
6 + if ( installLink ) {
7 7 jQuery( installLink ).on( 'click', frmInstallPro );
8 8 }
9 9
10 10 const deauthLink = jQuery( '.frm_deauthorize_link' );
@@ -16,9 +16,9 @@
16 16 frmAdminPopup.init();
17 17 }
18 18
19 19 const submenuItem = document.querySelector( '.frm-upgrade-submenu' );
20 - if ( null !== submenuItem ) {
20 + if ( submenuItem ) {
21 21 const li = submenuItem.parentNode.parentNode;
22 22 if ( li ) {
23 23 li.classList.add( 'frm-submenu-highlight' );
24 24 }
@@ -131,15 +131,15 @@
131 131
132 132 function populateOpts( val ) {
133 133 const sc = document.getElementById( 'frm_complete_shortcode' );
134 134
135 - if ( sc !== null ) {
135 + if ( sc ) {
136 136 sc.value = `[${ val }]`;
137 137 }
138 138 jQuery( '.frm_shortcode_option' ).hide();
139 139
140 140 const $settings = document.getElementById( `sc-opts-${ val }` );
141 - if ( $settings !== null ) {
141 + if ( $settings ) {
142 142 $settings.style.display = '';
143 143 jQuery( document.getElementById( `sc-${ val }` ) ).trigger( 'click' );
144 144 } else {
145 145 const $scOpts = jQuery( document.getElementById( 'frm_shortcode_options' ) );