Make WordPress Core


Ignore:
Timestamp:
10/28/2008 10:59:26 AM (18 years ago)
Author:
azaozz
Message:

Write page styling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r9376 r9384  
    14951495        }
    14961496
    1497 /*      if ( $media_buttons ) { ?>
     1497        if ( $media_buttons ) { ?>
    14981498                <div id="media-buttons" class="hide-if-no-js">
    14991499                <?php do_action( 'media_buttons' ); ?>
    15001500                </div>
    1501         <?php } */ ?>
     1501        <?php } ?>
    15021502        </div>
    15031503
     
    15201520        if ( typeof tinyMCE != 'undefined' ) {
    15211521                // 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() ) {
    15291526                                        tinyMCE.activeEditor.focus();
     1527                                        e.preventDefault();
    15301528                                        return false;
    15311529                                }
    1532                                 return true;
     1530                                return;
    15331531                        }
    1534                 }
     1532                });
    15351533        }
    15361534        <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.