summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/jetpack-admin.js')
-rw-r--r--plugins/jetpack/_inc/jetpack-admin.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/jetpack/_inc/jetpack-admin.js b/plugins/jetpack/_inc/jetpack-admin.js
index 3908c297..1a9a75ce 100644
--- a/plugins/jetpack/_inc/jetpack-admin.js
+++ b/plugins/jetpack/_inc/jetpack-admin.js
@@ -1,9 +1,9 @@
-( function( $ ) {
+( function ( $ ) {
///////////////////////////////////////
// INIT
///////////////////////////////////////
- $( document ).ready( function() {
+ $( document ).ready( function () {
initEvents();
configFixedElements();
} );
@@ -17,7 +17,7 @@
jpBottomFrame = $( '.frame.bottom' ),
$body = $( 'body' );
- $body.scroll( function() {
+ $body.scroll( function () {
if ( 33 > jpTopFrame.offset().top ) {
jpTopFrame.addClass( 'fixed' );
$body.addClass( 'jp-frame-top-fixed' );
@@ -35,21 +35,19 @@
function initEvents() {
// toggle search and filters at mobile resolution
- $( '.filter-search' ).on( 'click', function() {
+ $( '.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 );
+ $( '.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 .close' ).on( 'click', function ( event ) {
$( '.shade, .modal' ).hide();
$( '.manage-right' ).removeClass( 'show' );
event.preventDefault();