PluginProbe
BeyondWords – AI audio for publishers / 4.2.4
BeyondWords – AI audio for publishers v4.2.4
7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.7.0 All 43 releases
speechkit / src / Component / Settings / Preselect / settings.js

settings.js in BeyondWords – AI audio for publishers 4.2.4, at src/Component/Settings/Preselect/settings.js

36 lines 821 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* global jQuery */
2
3 ( function ( $ ) {
4 'use strict';
5
6 const $fields = $(
7 '#beyondwords-plugin-settings .beyondwords-setting--preselect--post-type'
8 );
9
10 $fields.each( function () {
11 if ( $( this ).find( '> label > input' ).is( ':checked' ) ) {
12 $( this )
13 .find( '.beyondwords-setting--preselect--taxonomy' )
14 .hide();
15 }
16 } );
17
18 $fields.on( 'change', '> label > input', function () {
19 const $postType = $( this ).closest(
20 '.beyondwords-setting--preselect--post-type'
21 );
22 if ( this.checked ) {
23 $postType
24 .find( '.beyondwords-setting--preselect--taxonomy' )
25 .hide();
26 $postType
27 .find( '.beyondwords-setting--preselect--term input' )
28 .prop( 'checked', false );
29 } else {
30 $postType
31 .find( '.beyondwords-setting--preselect--taxonomy' )
32 .show();
33 }
34 } );
35 } )( jQuery );
36