PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
buddypress
/
bp-templates
/
bp-nouveau
/
js
/* global _ */ /* @version 3.0.0 */ window.wp = window.wp || {}; ( function( wp, $ ) { if ( 'undefined' === typeof wp.customize ) { return; } wp.customize.bind( 'ready', function() { var groupFrontPage = wp.customize.control( 'group_front_page' ), userFrontPage = wp.customize.control( 'user_front_page' ); // If the Main Group setting is disabled, hide all others if ( 'undefined' !== typeof groupFrontPage ) { $( groupFrontPage.selector ).on( 'click', 'input[type=checkbox]', function( event ) { var checked = $( event.currentTarget ).prop( 'checked' ), controller = $( event.delegateTarget ).prop( 'id' ); _.each( wp.customize.section( 'bp_nouveau_group_front_page' ).controls(), function( control ) { if ( control.selector !== '#' + controller ) { if ( true === checked ) { $( control.selector ).show(); } else { $( control.selector ).hide(); } } } ); } ); } // If the Main User setting is disabled, hide all others if ( 'undefined' !== typeof userFrontPage ) { $( userFrontPage.selector ).on( 'click', 'input[type=checkbox]', function( event ) { var checked = $( event.currentTarget ).prop( 'checked' ), controller = $( event.delegateTarget ).prop( 'id' ); _.each( wp.customize.section( 'bp_nouveau_user_front_page' ).controls(), function( control ) { if ( control.selector !== '#' + controller ) { if ( true === checked ) { $( control.selector ).show(); } else { $( control.selector ).hide(); } } } ); } ); } $( 'ul#customize-control-group_nav_order, ul#customize-control-user_nav_order' ).sortable( { cursor : 'move', axis : 'y', opacity : 1, items : 'li:not(.ui-sortable-disabled)', tolerance : 'intersect', update: function() { var order = []; $( this ).find( '[data-bp-nav]' ).each( function( s, slug ) { order.push( $( slug ).data( 'bp-nav' ) ); } ); if ( order.length ) { $( '#bp_item_' + $( this ).data( 'bp-type' ) ).val( order.join() ).trigger( 'change' ); } } } ).disableSelection(); } ); } )( window.wp, jQuery );
[+]
..
[-] buddypress-xprofile.js
[edit]
[-] buddypress-nouveau.js
[edit]
[-] buddypress-nouveau.min.js
[edit]
[-] buddypress-group-invites.min.js
[edit]
[-] customizer.min.js
[edit]
[-] buddypress-xprofile.min.js
[edit]
[-] password-verify.min.js
[edit]
[-] buddypress-notifications.min.js
[edit]
[-] buddypress-activity.js
[edit]
[-] buddypress-messages.js
[edit]
[-] buddypress-notifications.js
[edit]
[-] buddypress-activity-post-form.min.js
[edit]
[-] buddypress-group-invites.js
[edit]
[-] password-verify.js
[edit]
[-] customizer.js
[edit]
[-] buddypress-messages.min.js
[edit]
[-] buddypress-activity.min.js
[edit]
[-] buddypress-activity-post-form.js
[edit]