Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 14 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
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 | } ); |