mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Don't hide the label for the Title on the Edit Post screen, use 'screen-reader-text' instead, props SergeyBiryukov, fixes #21458
git-svn-id: https://develop.svn.wordpress.org/trunk@21584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -641,20 +641,20 @@ jQuery(document).ready( function($) {
|
||||
var title = $('#' + id), titleprompt = $('#' + id + '-prompt-text');
|
||||
|
||||
if ( title.val() == '' )
|
||||
titleprompt.css('visibility', '');
|
||||
titleprompt.removeClass('screen-reader-text');
|
||||
|
||||
titleprompt.click(function(){
|
||||
$(this).css('visibility', 'hidden');
|
||||
$(this).addClass('screen-reader-text');
|
||||
title.focus();
|
||||
});
|
||||
|
||||
title.blur(function(){
|
||||
if ( this.value == '' )
|
||||
titleprompt.css('visibility', '');
|
||||
titleprompt.removeClass('screen-reader-text');
|
||||
}).focus(function(){
|
||||
titleprompt.css('visibility', 'hidden');
|
||||
titleprompt.addClass('screen-reader-text');
|
||||
}).keydown(function(e){
|
||||
titleprompt.css('visibility', 'hidden');
|
||||
titleprompt.addClass('screen-reader-text');
|
||||
$(this).unbind(e);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user