Changeset 52225
- Timestamp:
- 11/19/2021 10:54:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/post.js
r50547 r52225 973 973 */ 974 974 function editPermalink() { 975 var i, slug_value, 975 var i, slug_value, slug_label, 976 976 $el, revert_e, 977 977 c = 0, … … 1049 1049 } 1050 1050 slug_value = ( c > full.length / 4 ) ? '' : full; 1051 1052 $el.html( '<input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" />' ).children( 'input' ).on( 'keydown', function( e ) { 1051 slug_label = __( 'URL Slug' ); 1052 1053 $el.html( '<label for="new-post-slug" class="screen-reader-text">' + slug_label + '</label><input type="text" id="new-post-slug" value="' + slug_value + '" autocomplete="off" spellcheck="false" />' ).children( 'input' ).on( 'keydown', function( e ) { 1053 1054 var key = e.which; 1054 1055 // On [Enter], just save the new slug, don't save the post.
Note: See TracChangeset
for help on using the changeset viewer.