Make WordPress Core


Ignore:
Timestamp:
05/26/2010 09:17:40 AM (14 years ago)
Author:
nbachiyski
Message:

Focus on category field when adding a new category in the write panel

File:
1 edited

Legend:

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

    r14730 r14940  
    316316        $('#' + taxonomy + '-add-toggle').click( function() {
    317317            $('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' );
    318             $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();
     318            $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();         
     319            $('#new'+taxonomy).focus();
    319320            return false;
    320321        });
Note: See TracChangeset for help on using the changeset viewer.