Changeset 21970
- Timestamp:
- 09/24/2012 04:25:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post.js
r21947 r21970 300 300 // Ajax Cat 301 301 $('#new' + taxonomy).one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } ); 302 303 $('#new' + taxonomy).keypress( function(event){ 304 if( 13 === event.keyCode ) { 305 event.preventDefault(); 306 $('#' + taxonomy + '-add-submit').click(); 307 } 308 }); 302 309 $('#' + taxonomy + '-add-submit').click( function(){ $('#new' + taxonomy).focus(); }); 303 310
Note: See TracChangeset
for help on using the changeset viewer.