Make WordPress Core

Changeset 20338


Ignore:
Timestamp:
04/01/2012 10:46:29 PM (13 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media.dev.js

    r15918 r20338  
    2929                ps: $('#find-posts-input').val(),
    3030                action: 'find_posts',
    31                 _ajax_nonce: $('#_ajax_nonce').val()
     31                _ajax_nonce: $('#_ajax_nonce').val(),
     32                post_type: $('input[name="find-posts-what"]:checked').val()
    3233            };
    33 
    34             var selectedItem;
    35             $("input[@name='itemSelect[]']:checked").each(function() { selectedItem = $(this).val() });
    36             post['post_type'] = selectedItem;
    3734
    3835            $.ajax({
Note: See TracChangeset for help on using the changeset viewer.