Completed
Push — 312-fix/delete-post-meta-modul... ( fbbe37...602413 )
by Sudar
14:44 queued 11:16
created

$(document).ready   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 7
rs 9.4285
1
/**
2
 * JavaScript for "Bulk Delete Comment Meta" module of Bulk Delete Plugin.
3
 *
4
 * @author Sudar <https://bulkwp.com>
5
 * @since 6.0.0
6
 */
7
8
/*global jQuery, document*/
9
jQuery( document ).ready( function () {
10
	jQuery( 'input[name="smbd_comment_meta_use_value"]' ).change( function () {
11
		if ( 'true' === jQuery( this ).val() ) {
12
			jQuery( '#smbd_comment_meta_filters' ).show();
13
		} else {
14
			jQuery( '#smbd_comment_meta_filters' ).hide();
15
		}
16
	} );
17
} );
18