PluginProbe
Adminimize / 1.11.4
Adminimize v1.11.4
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / js / adminimize.js

adminimize.js in Adminimize 1.11.4, at js/adminimize.js

25 lines 534 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Adminimize script to select all checkbox for each rows.
3 * Only load and usage on settings page.
4 *
5 * @version 2015-12-20
6 */
7 jQuery( document ).ready( function( $ ) {
8 'use strict';
9
10 $( 'thead input:checkbox' ).change( function() {
11
12 var className = this.className,
13 input = 'input:checkbox.' + className;
14
15 $( input ).prop(
16 'checked', $( this ).prop( 'checked' )
17 );
18 } );
19
20 $( '.postbox h3' ).on( 'click', function( e ) {
21 $( this ).closest( '.postbox' ).toggleClass( 'closed' );
22 e.preventDefault();
23 } );
24
25 } );