File Editor
Directories:
.. (Back)
blocks
build
fonts
genericons
lib
social-logos
Files:
accessible-focus.js
class.jetpack-provision.php
connect-button.js
crowdsignal-shortcode.js
crowdsignal-survey.js
facebook-embed.js
footer.php
gallery-settings.js
genericons.php
header.php
idc-notice.js
jetpack-admin.js
jetpack-connection-banner.js
jetpack-deactivate-dialog.js
jetpack-jitm.js
jetpack-modules.js
jetpack-modules.models.js
jetpack-modules.views.js
jetpack-server-sandbox.php
jetpack-strings.php
jetpack-wizard-banner.js
jquery.jetpack-resize.js
jquery.spin.js
polldaddy-shortcode.js
postmessage.js
social-logos.php
spin.js
twitter-timeline.js
Create New File
Create
Edit File: jetpack-admin.js
( function( $ ) { /////////////////////////////////////// // INIT /////////////////////////////////////// $( document ).ready( function() { initEvents(); configFixedElements(); } ); /////////////////////////////////////// // FUNCTIONS /////////////////////////////////////// function configFixedElements() { var jpTopFrame = $( '.frame.top' ), jpBottomFrame = $( '.frame.bottom' ), $body = $( 'body' ); $body.scroll( function() { if ( 33 > jpTopFrame.offset().top ) { jpTopFrame.addClass( 'fixed' ); $body.addClass( 'jp-frame-top-fixed' ); } if ( 120 <= jpBottomFrame.offset().top ) { jpTopFrame.removeClass( 'fixed' ); $body.removeClass( 'jp-frame-top-fixed' ); } } ); $( 'table.jetpack-modules', jpBottomFrame ).addClass( 'with-transparency' ); $( '.manage-left', jpBottomFrame ).css( 'width', '' ); $( '.manage-right', jpBottomFrame ).show(); } function initEvents() { // toggle search and filters at mobile resolution $( '.filter-search' ).on( 'click', function() { $( this ).toggleClass( 'active' ); $( '.manage-right' ).toggleClass( 'show' ); $( '.shade' ).toggle(); } ); // Toggle all checkboxes $( '.checkall' ).on( 'click', function() { $( '.table-bordered' ) .find( ':checkbox' ) .prop( 'checked', this.checked ); } ); // Clicking outside modal, or close X closes modal $( '.shade, .modal .close' ).on( 'click', function( event ) { $( '.shade, .modal' ).hide(); $( '.manage-right' ).removeClass( 'show' ); event.preventDefault(); } ); } } )( jQuery );
Save Changes
Rename File
Rename