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:
Mark Jaquith 2007-09-07 02:56:05 +00:00
parent 25facccea1
commit be0bf5b459
1 changed files with 1 additions and 1 deletions

View File

@ -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