mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.
git-svn-id: https://develop.svn.wordpress.org/trunk@7325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -66,15 +66,7 @@ else
|
||||
?>" />
|
||||
|
||||
<?php echo $form_extra ?>
|
||||
<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
|
||||
<script type="text/javascript">
|
||||
function focusit() {
|
||||
// focus on first input field
|
||||
document.post.title.focus();
|
||||
}
|
||||
addLoadEvent(focusit);
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="poststuff">
|
||||
|
||||
<div class="submitbox" id="submitpost">
|
||||
@@ -352,3 +344,9 @@ if ( $authors && count( $authors ) > 1 ) :
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
|
||||
<script type="text/javascript">
|
||||
try{document.post.title.focus();}catch(e){}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user