Ticket #6241: js-onload.patch
| File js-onload.patch, 5.8 KB (added by azaozz, 4 years ago) |
|---|
-
wp-admin/edit-form-advanced.php
66 66 ?>" /> 67 67 68 68 <?php echo $form_extra ?> 69 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?> 70 <script type="text/javascript"> 71 function focusit() { 72 // focus on first input field 73 document.post.title.focus(); 74 } 75 addLoadEvent(focusit); 76 </script> 77 <?php endif; ?> 69 78 70 <div id="poststuff"> 79 71 80 72 <div class="submitbox" id="submitpost"> … … 352 344 </div> 353 345 354 346 </form> 347 348 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?> 349 <script type="text/javascript"> 350 try{document.post.title.focus();}catch(e){} 351 </script> 352 <?php endif; ?> -
wp-admin/edit-form-comment.php
12 12 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 13 13 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 14 14 15 <script type="text/javascript">16 function focusit() { // focus on first input field17 document.post.name.focus();18 }19 addLoadEvent(focusit);20 </script>21 22 15 <div id="poststuff"> 23 16 24 17 <div class="submitbox" id="submitcomment"> … … 108 101 </div> 109 102 110 103 </form> 104 105 <script type="text/javascript"> 106 try{document.post.name.focus();}catch(e){} 107 </script> -
wp-admin/edit-form.php
9 9 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 10 10 <input type="hidden" name="action" value='post' /> 11 11 12 <script type="text/javascript">13 <!--14 function focusit() { // focus on first input field15 document.getElementById('title').focus();16 }17 addLoadEvent(focusit);18 //-->19 </script>20 21 12 <div id="poststuff"> 22 13 <fieldset id="titlediv"> 23 14 <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend> … … 72 63 </div> 73 64 </form> 74 65 66 <script type="text/javascript"> 67 try{document.getElementById('title').focus();}catch(e){} 68 </script> 75 69 </div> -
wp-admin/edit-page-form.php
44 44 echo clean_url(stripslashes(wp_get_referer())); 45 45 ?>" /> 46 46 47 <script type="text/javascript">48 // <![CDATA[49 function focusit() { // focus on first input field50 document.post.title.focus();51 }52 addLoadEvent(focusit);53 // ]]>54 </script>55 47 <div id="poststuff"> 56 48 57 49 <div class="submitbox" id="submitpage"> … … 281 273 </div> 282 274 283 275 </form> 276 277 <script type="text/javascript"> 278 try{document.post.title.focus();}catch(e){} 279 </script> -
wp-admin/js/comment.js
1 addLoadEvent( function() {1 jQuery(document).ready( function() { 2 2 add_postbox_toggles('comment'); 3 3 4 4 jQuery('.edit-timestamp').click(function () { -
wp-admin/js/common.js
1 addLoadEvent( function() {1 jQuery(document).ready( function() { 2 2 // pulse 3 3 jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300); 4 4 -
wp-admin/js/link.js
1 addLoadEvent( function() {1 jQuery(document).ready( function() { 2 2 jQuery('#link_name').focus(); 3 3 // postboxes 4 4 add_postbox_toggles('link'); -
wp-admin/js/page.js
1 addLoadEvent( function() {1 jQuery(document).ready( function() { 2 2 add_postbox_toggles('page'); 3 3 make_slugedit_clickable(); 4 4 -
wp-admin/js/post.js
58 58 } 59 59 } 60 60 61 addLoadEvent( function() {61 jQuery(document).ready( function() { 62 62 // postboxes 63 63 add_postbox_toggles('post'); 64 64 -
wp-admin/js/upload.js
1 addLoadEvent( function() {1 jQuery(document).ready( function() { 2 2 theFileList = { 3 3 currentImage: {ID: 0}, 4 4 nonce: '', -
wp-includes/js/thickbox/thickbox.js
11 11 /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ 12 12 13 13 //on page load call tb_init 14 addLoadEvent(function(){14 jQuery(document).ready(function(){ 15 15 tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox 16 16 imgLoader = new Image();// preload image 17 17 imgLoader.src = tb_pathToImage;
