mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
focus the cursor when writing a new post. Props foolswisdom and Nazgul. fixes #3936
git-svn-id: http://svn.automattic.com/wordpress/trunk@6059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6a1c63e2f7
commit
229a52b3a1
@ -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