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:
Peter Westwood
2008-03-15 22:57:47 +00:00
parent 5a72522fb2
commit 2d7ba950bc
12 changed files with 26 additions and 41 deletions
+4 -8
View File
@@ -44,14 +44,6 @@ else
echo clean_url(stripslashes(wp_get_referer()));
?>" />
<script type="text/javascript">
// <![CDATA[
function focusit() { // focus on first input field
document.post.title.focus();
}
addLoadEvent(focusit);
// ]]>
</script>
<div id="poststuff">
<div class="submitbox" id="submitpage">
@@ -281,3 +273,7 @@ if ( $authors && count( $authors ) > 1 ) :
</div>
</form>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}
</script>