Make WordPress Core

Changeset 26200


Ignore:
Timestamp:
11/15/2013 05:15:06 AM (13 years ago)
Author:
nacin
Message:

Fix JSHint errors in 5 files.

props seanchayes.
fixes #26015, #26020, #26019, #26034, #26022.

Location:
trunk/src
Files:
5 edited

Legend:

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

    r23586 r26200  
     1/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */
     2
    13jQuery(document).ready( function($) {
    24
     
    2325
    2426        // Ajax Cat
    25         newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } );
     27        newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );
    2628        $('#link-category-add-submit').click( function() { newCat.focus(); } );
    2729        syncChecks = function() {
  • trunk/src/wp-admin/js/media.js

    r22723 r26200  
     1/* global ajaxurl, wpAjax */
    12
    23var findPosts;
     
    78                                overlay = $( '.ui-find-overlay' );
    89
    9                         if ( overlay.length == 0 ) {
     10                        if ( overlay.length === 0 ) {
    1011                                $( 'body' ).append( '<div class="ui-find-overlay"></div>' );
    1112                                findPosts.overlay();
     
    99100        $(document).ready(function() {
    100101                $('#find-posts-submit').click(function(e) {
    101                         if ( '' == $('#find-posts-response').html() )
     102                        if ( '' === $('#find-posts-response').html() )
    102103                                e.preventDefault();
    103104                });
  • trunk/src/wp-includes/js/customize-preview.js

    r22798 r26200  
    9191                });
    9292
    93                 preview.bind( 'active', function() {
    94                         if ( api.settings.nonce )
    95                                 preview.send( 'nonce', api.settings.nonce );
    96                 });
     93        preview.bind( 'active', function() {
     94            if ( api.settings.nonce )
     95                preview.send( 'nonce', api.settings.nonce );
     96        });
    9797
    9898                preview.send( 'ready' );
  • trunk/src/wp-includes/js/jquery/jquery.table-hotkeys.js

    r21592 r26200  
    99                        }
    1010                        return true;
    11                 }
     11                };
    1212                return this.filter(is_visible);
    1313        };
     
    1717               
    1818                selected_class = opts.class_prefix + opts.selected_suffix;
    19                 destructive_class = opts.class_prefix + opts.destructive_suffix
     19                destructive_class = opts.class_prefix + opts.destructive_suffix;
    2020                set_current_row = function (tr) {
    2121                        if ($.table_hotkeys.current_row) $.table_hotkeys.current_row.removeClass(selected_class);
     
    6767                                if (clickable.is('.'+destructive_class)) next_row() || prev_row();
    6868                                clickable.click();
    69                         }
     69                        };
    7070                };
    7171                first_row = get_first_row();
     
    7575                else if (opts.highlight_last)
    7676                        set_current_row(get_last_row());
    77                 $.hotkeys.add(opts.prev_key, opts.hotkeys_opts, function() {return adjacent_row_callback('prev')});
    78                 $.hotkeys.add(opts.next_key, opts.hotkeys_opts, function() {return adjacent_row_callback('next')});
     77                $.hotkeys.add(opts.prev_key, opts.hotkeys_opts, function() {return adjacent_row_callback('prev');});
     78                $.hotkeys.add(opts.next_key, opts.hotkeys_opts, function() {return adjacent_row_callback('next');});
    7979                $.hotkeys.add(opts.mark_key, opts.hotkeys_opts, check);
    8080                $.each(keys, function() {
  • trunk/src/wp-includes/js/media-editor.js

    r25720 r26200  
     1/* global getUserSetting, tinymce, QTags, wpActiveEditor */
     2
    13// WordPress, TinyMCE, and Media
    24// -----------------------------
     
    525527                                        return this.send.attachment( display, attachment.toJSON() );
    526528                                }, this ) ).done( function() {
    527                                         wp.media.editor.insert( _.toArray( arguments ).join("\n\n") );
     529                                        wp.media.editor.insert( _.toArray( arguments ).join('\n\n') );
    528530                                });
    529531                        }, this );
Note: See TracChangeset for help on using the changeset viewer.