Make WordPress Core

Changeset 26199


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

Fix JSHint errors in 3 files.

props atimmer.
fixes #25990, #25993, #26008.

Location:
trunk/src/wp-admin/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/password-strength-meter.js

    r25839 r26199  
     1/* global zxcvbn */
    12window.wp = window.wp || {};
    23
     
    4142                currentField = $( '#' + userInputFields[ i ] );
    4243
    43                 if ( 0 == currentField.length ) {
     44                if ( 0 === currentField.length ) {
    4445                    continue;
    4546                }
     
    5960            // Remove empty values, short words, and duplicates. Short words are likely to cause many false positives.
    6061            blacklist = $.grep( blacklist, function( value, key ) {
    61                 if ( '' == value || 4 > value.length ) {
     62                if ( '' === value || 4 > value.length ) {
    6263                    return false;
    6364                }
     
    6869            return blacklist;
    6970        }
    70     }
     71    };
    7172
    7273    // Backwards compatibility.
  • trunk/src/wp-admin/js/plugin-install.js

    r26144 r26199  
     1/* global plugininstallL10n, tb_click, confirm */
     2
    13/* Plugin Browser Thickbox related JS*/
    24var tb_position;
     
    1416            if ( typeof document.body.style.maxWidth != 'undefined' )
    1517                tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'});
    16         };
     18        }
    1719
    1820        return $('a.thickbox').each( function() {
  • trunk/src/wp-admin/js/set-post-thumbnail.js

    r21592 r26199  
    1 function WPSetAsThumbnail(id, nonce){
     1/* global setPostThumbnailL10n, ajaxurl, post_id, alert */
     2/* exported WPSetAsThumbnail */
     3
     4function WPSetAsThumbnail( id, nonce ) {
    25    var $link = jQuery('a#wp-post-thumbnail-' + id);
    36
    47    $link.text( setPostThumbnailL10n.saving );
    58    jQuery.post(ajaxurl, {
    6         action:"set-post-thumbnail", post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie)
     9        action: 'set-post-thumbnail', post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent( document.cookie )
    710    }, function(str){
    811        var win = window.dialogArguments || opener || parent || top;
Note: See TracChangeset for help on using the changeset viewer.