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:
parent
816ebbd616
commit
ffbdfe9b06
@ -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