web/wp-admin/js/media.dev.js
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
    29 				ps: $('#find-posts-input').val(),
    29 				ps: $('#find-posts-input').val(),
    30 				action: 'find_posts',
    30 				action: 'find_posts',
    31 				_ajax_nonce: $('#_ajax_nonce').val()
    31 				_ajax_nonce: $('#_ajax_nonce').val()
    32 			};
    32 			};
    33 
    33 
    34 			if ( $('#find-posts-pages:checked').val() ) {
    34 			if ( $('#find-posts-pages').is(':checked') ) {
    35 				post['pages'] = 1;
    35 				post['pages'] = 1;
    36 			} else {
    36 			} else {
    37 				post['posts'] = 1;
    37 				post['posts'] = 1;
    38 			}
    38 			}
    39 			$.ajax({
    39 			$.ajax({