| @@ -84,21 +84,19 @@ | ||
| 84 | 84 | |
| 85 | 85 | ?> |
| 86 | 86 | <script type='text/javascript'> |
| 87 | 87 | //<![CDATA[ |
| 88 | - jQuery( | |
| 89 | - function( $ ){ | |
| 90 | - $( "input[name='force_lang']" ).on( 'change', function() { | |
| 91 | - var value = $( this ).val(); | |
| 92 | - if ( 3 > value ) { | |
| 93 | - $( "#pll-module-browser" ).<?php echo $func; // phpcs:ignore WordPress.Security.EscapeOutput ?>.children( "td" ).children( ".row-actions" ).html( '<?php echo $link; // phpcs:ignore WordPress.Security.EscapeOutput ?>' ); | |
| 94 | - } | |
| 95 | - else { | |
| 96 | - $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' ); | |
| 97 | - } | |
| 98 | - } ); | |
| 99 | - } | |
| 100 | - ); | |
| 88 | + ( function( $ ){ | |
| 89 | + $( "input[name='force_lang']" ).change( function() { | |
| 90 | + var value = $( this ).val(); | |
| 91 | + if ( 3 > value ) { | |
| 92 | + $( "#pll-module-browser" ).<?php echo $func; // phpcs:ignore WordPress.Security.EscapeOutput ?>.children( "td" ).children( ".row-actions" ).html( '<?php echo $link; // phpcs:ignore WordPress.Security.EscapeOutput ?>' ); | |
| 93 | + } | |
| 94 | + else { | |
| 95 | + $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' ); | |
| 96 | + } | |
| 97 | + } ); | |
| 98 | + } )( jQuery ); | |
| 101 | 99 | // ]]> |
| 102 | 100 | </script> |
| 103 | 101 | <?php |
| 104 | 102 | } |