WordPress.org

Make WordPress Core

Ticket #15809: post.dev.diff

File post.dev.diff, 641 bytes (added by gilbitron, 3 years ago)
  • post.dev.js

     
    325325                        if ( id && t.parents('#taxonomy-'+taxonomy).length ) 
    326326                                $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).attr( 'checked', c ); 
    327327                }); 
     328         
     329        $('#newcategory', this).keypress( function(e) { 
     330            code = (e.keyCode ? e.keyCode : e.which); 
     331            if (code == 13){ 
     332                $('#category-add-submit').trigger('click'); 
     333                e.preventDefault(); 
     334            } 
     335        }); 
    328336 
    329337        }); // end cats 
    330338