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:
nbachiyski
2010-05-26 09:17:40 +00:00
parent 850c7ad292
commit 6b09078e2f
5 changed files with 8 additions and 6 deletions

View File

@@ -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;
} );