Focus on category field when adding a new category in the write panel
git-svn-id: http://svn.automattic.com/wordpress/trunk@14940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -56,9 +56,10 @@ jQuery(document).ready( function($) {
|
||||
if ( 'pop' == getUserSetting('cats') )
|
||||
$('a[href="#categories-pop"]').click();
|
||||
|
||||
$('#category-add-toggle').click( function() {
|
||||
$('#category-add-toggle').click( function() {
|
||||
$(this).parents('div:first').toggleClass( 'wp-hidden-children' );
|
||||
$('#category-tabs a[href="#categories-all"]').click();
|
||||
$('#newcategory').focus();
|
||||
return false;
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user