Changeset 9384 for trunk/wp-includes/general-template.php
- Timestamp:
- 10/28/2008 10:59:26 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r9376 r9384 1495 1495 } 1496 1496 1497 /*if ( $media_buttons ) { ?>1497 if ( $media_buttons ) { ?> 1498 1498 <div id="media-buttons" class="hide-if-no-js"> 1499 1499 <?php do_action( 'media_buttons' ); ?> 1500 1500 </div> 1501 <?php } */?>1501 <?php } ?> 1502 1502 </div> 1503 1503 … … 1520 1520 if ( typeof tinyMCE != 'undefined' ) { 1521 1521 // This code is meant to allow tabbing from Title to Post (TinyMCE). 1522 document.getElementById('<?php echo $prev_id; ?>').onkeydown = function (e) { 1523 e = e || window.event; 1524 if (e.keyCode == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 1525 if ( tinyMCE.activeEditor ) { 1526 if ( (jQuery("#post_ID").val() < 1) && (jQuery("#title").val().length > 0) ) { autosave(); } 1527 e = null; 1528 if ( tinyMCE.activeEditor.isHidden() ) return true; 1522 jQuery('#<?php echo $prev_id; ?>').keydown(function (e) { 1523 if (e.which == 9 && !e.shiftKey && !e.controlKey && !e.altKey) { 1524 if ( (jQuery("#post_ID").val() < 1) && (jQuery("#title").val().length > 0) ) { autosave(); } 1525 if ( tinyMCE.activeEditor && ! tinyMCE.activeEditor.isHidden() ) { 1529 1526 tinyMCE.activeEditor.focus(); 1527 e.preventDefault(); 1530 1528 return false; 1531 1529 } 1532 return true;1530 return; 1533 1531 } 1534 } 1532 }); 1535 1533 } 1536 1534 <?php } ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)