Make WordPress Core

Ticket #19176: 19176v2.diff

File 19176v2.diff, 944 bytes (added by scottbasgaard, 14 years ago)

Sorry for the filename typo in my first patch. Here's round 2 with support for post_tags and all other non heirarchy taxs.

  • wp-admin/js/inline-edit-post.dev.js

     
    115115
    116116                // enable autocomplete for tags
    117117                if ( 'post' == type ) {
    118                         // support multi taxonomies?
    119                         tax = 'post_tag';
    120                         $('tr.inline-editor textarea[name="tags_input"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
     118                        $('#bulk-edit textarea[name^="tax_input"]').each(function() {
     119                                var tax = $(this).attr('name').replace(/(^.*\[|\].*$)/g, '');
     120                                $('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+tax, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
     121                        });
    121122                }
     123               
    122124                $('html, body').animate( { scrollTop: 0 }, 'fast' );
    123125        },
    124126