focus the cursor when writing a new post. Props foolswisdom and Nazgul. fixes #3936
git-svn-id: https://develop.svn.wordpress.org/trunk@6059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25facccea1
commit
be0bf5b459
@ -57,7 +57,7 @@ if (empty($post->post_status)) $post->post_status = 'draft';
|
||||
<input type="hidden" id="post_type" name="post_type" value="post" />
|
||||
|
||||
<?php echo $form_extra ?>
|
||||
<?php if (isset($_GET['message']) && 2 > $_GET['message']) : ?>
|
||||
<?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
|
||||
|
Loading…
Reference in New Issue
Block a user