Passed
Push — 262-fix/delete-sticky-posts ( 13b51e...ba9b70 )
by Rajan
09:05
created

$(document).ready   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 8
rs 9.4285
c 1
b 0
f 0
1
/**
2
 * Add select2 functionality..
3
 */
4
jQuery( document ).ready( function () {
5
	
6
	jQuery( '.sticky_force_delete' ).hide();
7
8
	jQuery("input[name='smbd_sticky_post_sticky_option']").change(function(){
9
		var sticky_option = jQuery("input[name='smbd_sticky_post_sticky_option']:checked").val();
10
		if( sticky_option == "show" ){
11
			jQuery( '.sticky_force_delete' ).show();
12
		}else{
13
			jQuery( '.sticky_force_delete' ).hide();
14
		}
15
	});
16
17
} );