WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/15/2008 10:57:47 PM (13 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r7310 r7325  
    4545?>" />
    4646
    47 <script type="text/javascript">
    48 // <![CDATA[
    49 function focusit() { // focus on first input field
    50     document.post.title.focus();
    51 }
    52 addLoadEvent(focusit);
    53 // ]]>
    54 </script>
    5547<div id="poststuff">
    5648
     
    282274
    283275</form>
     276
     277<script type="text/javascript">
     278try{document.post.title.focus();}catch(e){}
     279</script>
Note: See TracChangeset for help on using the changeset viewer.