mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 00:57:40 +02:00
Allow tags autosuggest to work in quick edit when there are no tags. props solarissmoke, see #19176.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3a3c7e2334
commit
461685f74f
@ -179,18 +179,19 @@ inlineEditPost = {
|
||||
$('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
|
||||
}
|
||||
});
|
||||
|
||||
//flat taxonomies
|
||||
$('.tags_input', rowData).each(function(){
|
||||
var terms = $(this).text();
|
||||
var terms = $(this).text(),
|
||||
taxname = $(this).attr('id').replace('_' + id, ''),
|
||||
textarea = $('textarea.tax_input_' + taxname, editRow);
|
||||
|
||||
if ( terms ) {
|
||||
taxname = $(this).attr('id').replace('_'+id, '');
|
||||
$('textarea.tax_input_'+taxname, editRow).val(terms);
|
||||
$('textarea.tax_input_'+taxname, editRow).suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
||||
}
|
||||
if ( terms )
|
||||
textarea.val(terms);
|
||||
|
||||
textarea.suggest( 'admin-ajax.php?action=ajax-tag-search&tax='+taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: ", " } );
|
||||
});
|
||||
|
||||
|
||||
// handle the post status
|
||||
status = $('._status', rowData).text();
|
||||
if ( 'future' != status )
|
||||
|
Loading…
Reference in New Issue
Block a user