mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -12,13 +12,6 @@ $form_extra = "' />\n<input type='hidden' name='comment_ID' value='" . $comment-
|
||||
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
||||
<input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' />
|
||||
|
||||
<script type="text/javascript">
|
||||
function focusit() { // focus on first input field
|
||||
document.post.name.focus();
|
||||
}
|
||||
addLoadEvent(focusit);
|
||||
</script>
|
||||
|
||||
<div id="poststuff">
|
||||
|
||||
<div class="submitbox" id="submitcomment">
|
||||
@@ -108,3 +101,7 @@ echo "<a href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
try{document.post.name.focus();}catch(e){}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user