Ticket #23613: 23613.patch
File 23613.patch, 781 bytes (added by , 11 years ago) |
---|
-
wp-admin/js/post.js
616 616 } 617 617 618 618 slug_value = ( c > full.length / 4 ) ? '' : full; 619 e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" />').children('input').keypress(function(e) {619 e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" />').children('input').keypress(function(e) { 620 620 var key = e.keyCode || 0; 621 621 // on enter, just save the new slug, don't save the post 622 622 if ( 13 == key ) { … … 627 627 b.children('.cancel').click(); 628 628 return false; 629 629 } 630 }).keyup(function(e) { 630 631 real_slug.val(this.value); 631 632 }).focus(); 632 633 }