| 1 |
/** |
| 2 |
* Bulk Edit |
| 3 |
* |
| 4 |
* @package ConvertKit |
| 5 |
* @author ConvertKit |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Copies Bulk Edit fields into WordPress' #bulk-edit table row on load. |
| 10 |
* |
| 11 |
* WordPress' built in Bulk Edit functionality does not do this automatically |
| 12 |
* for Plugins that register settings, which is why we have this code here. |
| 13 |
* |
| 14 |
* @since 1.9.8.0 |
| 15 |
*/ |
| 16 |
jQuery( document ).ready( |
| 17 |
function( $ ) { |
| 18 |
|
| 19 |
// Move Bulk Edit fields from footer into the hidden bulk-edit table row, |
| 20 |
// if a bulk-edit table row exists (it won't exist if searching returns no pages). |
| 21 |
if ( $( 'tr#bulk-edit .inline-edit-wrapper fieldset.inline-edit-col-right' ).length > 0 ) { |
| 22 |
$( 'tr#bulk-edit .inline-edit-wrapper fieldset.inline-edit-col-right' ).first().append( $( '#convertkit-bulk-edit' ) ); |
| 23 |
|
| 24 |
// Show the Bulk Edit fields, as they are now contained in the inline-edit row which WordPress will show/hide as necessary. |
| 25 |
$( '#convertkit-bulk-edit' ).show(); |
| 26 |
} |
| 27 |
|
| 28 |
} |
| 29 |
); |
| 30 |
|