Make WordPress Core

Changeset 26167


Ignore:
Timestamp:
11/14/2013 06:09:27 PM (11 years ago)
Author:
nacin
Message:

Fix JSHint errors in postbox.js.

props atimmer.
fixes #26006.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/postbox.js

    r21592 r26167  
     1/* global ajaxurl */
     2
    13var postboxes;
    24
     
    3133            });
    3234
    33             $('.postbox a.dismiss').bind('click.postboxes', function(e) {
     35            $( '.postbox a.dismiss' ).bind( 'click.postboxes', function() {
    3436                var hide_id = $(this).parents('.postbox').attr('id') + '-hide';
    3537                $( '#' + hide_id ).prop('checked', false).triggerHandler('click');
     
    8082                helper: 'clone',
    8183                opacity: 0.65,
    82                 stop: function(e,ui) {
     84                stop: function() {
    8385                    if ( $(this).find('#dashboard_browser_nag').is(':visible') && 'dashboard_browser_nag' != this.firstChild.id ) {
    8486                        $(this).sortable('cancel');
     
    125127                page_columns: page_columns,
    126128                page: page
    127             }
     129            };
    128130            $('.meta-box-sortables').each( function() {
    129                 postVars["order[" + this.id.split('-')[0] + "]"] = $(this).sortable( 'toArray' ).join(',');
     131                postVars[ 'order[' + this.id.split( '-' )[0] + ']' ] = $( this ).sortable( 'toArray' ).join( ',' );
    130132            } );
    131133            $.post( ajaxurl, postVars );
     
    135137            var visible = $('div.postbox:visible').length, side = $('#post-body #side-sortables');
    136138
    137             $('#dashboard-widgets .meta-box-sortables:visible').each(function(n, el){
     139            $( '#dashboard-widgets .meta-box-sortables:visible' ).each( function() {
    138140                var t = $(this);
    139141
Note: See TracChangeset for help on using the changeset viewer.