Fix getting the checked radio button when attaching orphan attachments, props solarissmoke SergeyBiryukov, fixes #16655

git-svn-id: https://develop.svn.wordpress.org/trunk@20338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2012-04-01 22:46:29 +00:00
parent 816ebbd616
commit ffbdfe9b06
1 changed files with 2 additions and 5 deletions

View File

@ -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,