Fix getting the checked radio button when attaching orphan attachments, props solarissmoke SergeyBiryukov, fixes #16655
git-svn-id: http://svn.automattic.com/wordpress/trunk@20338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9b2876e98
commit
c9897903ed
@ -28,13 +28,10 @@ var findPosts;
|
||||
var post = {
|
||||
ps: $('#find-posts-input').val(),
|
||||
action: 'find_posts',
|
||||
_ajax_nonce: $('#_ajax_nonce').val()
|
||||
_ajax_nonce: $('#_ajax_nonce').val(),
|
||||
post_type: $('input[name="find-posts-what"]:checked').val()
|
||||
};
|
||||
|
||||
var selectedItem;
|
||||
$("input[@name='itemSelect[]']:checked").each(function() { selectedItem = $(this).val() });
|
||||
post['post_type'] = selectedItem;
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : ajaxurl,
|
||||
|
Loading…
Reference in New Issue
Block a user