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

    r7310 r7325  
    1212<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    1313<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
    14 
    15 <script type="text/javascript">
    16 function focusit() { // focus on first input field
    17     document.post.name.focus();
    18 }
    19 addLoadEvent(focusit);
    20 </script>
    2114
    2215<div id="poststuff">
     
    109102
    110103</form>
     104
     105<script type="text/javascript">
     106try{document.post.name.focus();}catch(e){}
     107</script>
Note: See TracChangeset for help on using the changeset viewer.