Make WordPress Core

Ticket #25912: common.vars.diff

File common.vars.diff, 2.2 KB (added by jorbin, 13 years ago)
  • src/wp-admin/js/common.js

     
    161161
    162162$(document).ready( function() {
    163163        var lastClicked = false, checks, first, last, checked, sliced, menu = $('#adminmenu'), mobileEvent,
    164                 pageInput = $('input.current-page'), currentPage = pageInput.val();
     164                pageInput = $('input.current-page'), currentPage = pageInput.val(),
     165                transitionTimeout, focusedRowActions;
    165166
    166167        // when the menu is folded, make the fly-out submenu header clickable
    167168        menu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
    168169                $(e.target).parent().siblings('a').get(0).click();
    169170        });
    170171
    171         $('#collapse-menu').on('click.collapse-menu', function(e){
     172        $('#collapse-menu').on('click.collapse-menu', function(){
    172173                var body = $( document.body ), respWidth;
    173174
    174175                // reset any compensation for submenus near the bottom of the screen
     
    226227        }
    227228
    228229        menu.find('li.wp-has-submenu').hoverIntent({
    229                 over: function(e){
     230                over: function(){
    230231                        var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop, top = parseInt( m.css('top'), 10 );
    231232
    232233                        if ( isNaN(top) || top > -5 ) // meaning the submenu is visible
     
    335336        });
    336337
    337338        // Show row actions on keyboard focus of its parent container element or any other elements contained within
    338         var transitionTimeout, focusedRowActions;
    339339        $( 'td.post-title, td.title, td.comment, .bookmarks td.column-name, td.blogname, td.username, .dashboard-comment-wrap' ).focusin(function(){
    340340                clearTimeout( transitionTimeout );
    341341                focusedRowActions = $(this).find( '.row-actions' );
     
    396396                        e.preventDefault();
    397397        });
    398398
    399         $('#newcontent').bind('blur.wpevent_InsertTab', function(e) {
     399        $('#newcontent').bind('blur.wpevent_InsertTab', function() {
    400400                if ( this.lastKey && 9 == this.lastKey )
    401401                        this.focus();
    402402        });
    403403
    404404        if ( pageInput.length ) {
    405                 pageInput.closest('form').submit( function(e){
     405                pageInput.closest('form').submit( function(){
    406406
    407407                        // Reset paging var for new filters/searches but not for bulk actions. See #17685.
    408408                        if ( $('select[name="action"]').val() == -1 && $('select[name="action2"]').val() == -1 && pageInput.val() == currentPage )