# tablepress/3.2/admin/js/common.js

TablePress – Tables in WordPress made easy, version 3.2. 28 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.2/code/admin/js/common.js
- Raw: https://pluginprobe.com/plugins/tablepress/3.2/raw/admin/js/common.js
- Modified: 2025-03-25T06:12:14+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/tablepress/3.2/code/admin/js/common.js#L10-L20`.

```javascript
/**
 * JavaScript code for all TablePress admin screens.
 *
 * @package TablePress
 * @subpackage Views JavaScript
 * @author Tobias Bäthge
 * @since 1.0.0
 */

/* globals postboxes, pagenow, jQuery */

/**
 * Enable toggle/order functionality for post meta boxes.
 * For TablePress, pagenow has the form "tablepress_{$action}".
 *
 * @since 1.0.0
 */
postboxes.add_postbox_toggles( pagenow );

/**
 * Turn off the collapsing feature of postboxes when directly clicking on the postbox header bar.
 * This causes confusion to many users that accidentally click this.
 * After this, the postboxes can only be collapsed/expanded via the arrow icon in their header bar.
 *
 * @since 2.1.0
 */
jQuery( '.postbox .hndle' ).off( 'click.postboxes', postboxes.handle_click );

```
