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-form.php

    r7304 r7325  
    99<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    1010<input type="hidden" name="action" value='post' />
    11 
    12 <script type="text/javascript">
    13 <!--
    14 function focusit() { // focus on first input field
    15     document.getElementById('title').focus();
    16 }
    17 addLoadEvent(focusit);
    18 //-->
    19 </script>
    2011
    2112<div id="poststuff">
     
    7364</form>
    7465
     66<script type="text/javascript">
     67try{document.getElementById('title').focus();}catch(e){}
     68</script>
    7569</div>
Note: See TracChangeset for help on using the changeset viewer.