# adminimize/1.11.3/js/adminimize.js

Adminimize, version 1.11.3. 25 lines.

- Page: https://pluginprobe.com/plugins/adminimize/1.11.3/code/js/adminimize.js
- Raw: https://pluginprobe.com/plugins/adminimize/1.11.3/raw/js/adminimize.js
- Modified: 2017-11-16T15:47:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/adminimize/1.11.3/code/js/adminimize.js#L10-L20`.

```javascript
/**
 * Adminimize script to select all checkbox for each rows.
 * Only load and usage on settings page.
 *
 * @version 2015-12-20
 */
jQuery( document ).ready( function( $ ) {
	'use strict';

	$( 'thead input:checkbox' ).change( function() {

		var className = this.className,
			input = 'input:checkbox.' + className;

		$( input ).prop(
			'checked', $( this ).prop( 'checked' )
		);
	} );

	$( '.postbox h3' ).on( 'click', function( e ) {
		$( this ).closest( '.postbox' ).toggleClass( 'closed' );
		e.preventDefault();
	} );

} );
```
