Ticket #6352: edit-tabindex.diff
| File edit-tabindex.diff, 2.3 KB (added by westi, 5 years ago) |
|---|
-
C:/xampp/htdocs/wordpress/trunk/wp-admin/includes/post.php
655 655 $post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>'; 656 656 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 657 657 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n"; 658 $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(' . $id . '); return false;" >' . __('Edit') . "</a></span>\n";658 $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(' . $id . '); return false;" tabindex="1">' . __('Edit') . "</a></span>\n"; 659 659 return $return; 660 660 } 661 661 -
C:/xampp/htdocs/wordpress/trunk/wp-admin/js/slug.js
8 8 var revert_b = b.html(); 9 9 var full = jQuery('#editable-post-name-full').html(); 10 10 11 b.html('<a href="" class="save" >'+slugL10n.save+'</a> <a class="cancel" href="">'+slugL10n.cancel+'</a>');11 b.html('<a href="" class="save" tabindex="1">'+slugL10n.save+'</a> <a class="cancel" href="" tabindex="1">'+slugL10n.cancel+'</a>'); 12 12 b.children('.save').click(function() { 13 13 var new_slug = e.children('input').val(); 14 14 jQuery.post(slugL10n.requestFile, { … … 34 34 if ('%' == full.charAt(i)) c++; 35 35 } 36 36 slug_value = (c > full.length/4)? '' : full; 37 e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" />').children('input').keypress(function(e){37 e.html('<input type="text" id="new-post-slug" value="'+slug_value+'" tabindex="1" />').children('input').keypress(function(e){ 38 38 var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; 39 39 // on enter, just save the new slug, don't save the post 40 40 if (13 == key) {b.children('.save').click();return false;}
