Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2008-03-15 22:57:47 +00:00
parent 04ae1fc75a
commit e65d6369f2
12 changed files with 26 additions and 41 deletions

View File

@@ -9,15 +9,6 @@
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
<input type="hidden" name="action" value='post' />
<script type="text/javascript">
<!--
function focusit() { // focus on first input field
document.getElementById('title').focus();
}
addLoadEvent(focusit);
//-->
</script>
<div id="poststuff">
<fieldset id="titlediv">
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
@@ -72,4 +63,7 @@ edCanvas = document.getElementById('content');
</div>
</form>
<script type="text/javascript">
try{document.getElementById('title').focus();}catch(e){}
</script>
</div>