Make WordPress Core

Ticket #23613: 23613.patch

File 23613.patch, 781 bytes (added by SergeyBiryukov, 11 years ago)
  • wp-admin/js/post.js

     
    616616                        }
    617617
    618618                        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) {
    620620                                var key = e.keyCode || 0;
    621621                                // on enter, just save the new slug, don't save the post
    622622                                if ( 13 == key ) {
     
    627627                                        b.children('.cancel').click();
    628628                                        return false;
    629629                                }
     630                        }).keyup(function(e) {
    630631                                real_slug.val(this.value);
    631632                        }).focus();
    632633                }