Ticket #14312: 14312.2.diff
File 14312.2.diff, 629 bytes (added by , 14 years ago) |
---|
-
wp-admin/js/post.dev.js
279 279 280 280 // Ajax Cat 281 281 $('#new' + taxonomy).one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); 282 283 $('#new' + taxonomy).keypress( function(event){ 284 if(event.keyCode==13) { 285 event.preventDefault(); 286 $('#' + taxonomy + '-add-submit').click() 287 } 288 }); 282 289 $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); }); 283 290 284 291 syncChecks = function() {