Make WordPress Core

Changeset 31538


Ignore:
Timestamp:
02/25/2015 04:16:18 AM (11 years ago)
Author:
azaozz
Message:

Grunt precommit cleanup. See [31533], [31535].

Location:
trunk/src/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r31533 r31538  
    836836}
    837837
    838 @-moz-keyframes customize-reload {
    839     0%   { opacity: 0; }
    840     100% { opacity: 1; }
    841 }
    842 
    843838@keyframes customize-reload {
    844839    0%   { opacity: 0; }
     
    850845    display: block;
    851846    -webkit-animation: customize-reload .75s; /* Can't use `transition` because `display` changes here. */
    852     -moz-animation: customize-reload .75s;
    853847    animation: customize-reload .75s;
    854848}
  • trunk/src/wp-admin/js/customize-controls.js

    r31533 r31538  
    571571         */
    572572        attachEvents: function () {
    573             var meta, section = this;
     573            var section = this;
    574574
    575575            // Expand/Collapse section/panel.
     
    637637
    638638            section.container.on( 'input', '#themes-filter', function( event ) {
    639                 var term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ),
     639                var count,
     640                    term = event.currentTarget.value.toLowerCase().trim().replace( '-', ' ' ),
    640641                    controls = section.controls();
     642
    641643                controls.pop(); // Remove the last control (the add-new control).
     644
    642645                _.each( controls, function( control ) {
    643646                    control.filter( term );
     
    829832         * @since 4.2.0
    830833         */
    831         closeDetails: function ( theme ) {
     834        closeDetails: function () {
    832835            $( 'body' ).removeClass( 'modal-open' );
    833836            this.overlay.fadeOut( 'fast' );
     
    17991802        filter: function( term ) {
    18001803            var control = this,
    1801                 haystack = control.params.theme.name + ' '
    1802                            + control.params.theme.description + ' '
    1803                            + control.params.theme.tags + ' '
    1804                            + control.params.theme.author;
     1804                haystack = control.params.theme.name + ' ' +
     1805                           control.params.theme.description + ' ' +
     1806                           control.params.theme.tags + ' ' +
     1807                           control.params.theme.author;
    18051808            haystack = haystack.toLowerCase().replace( '-', ' ' );
    18061809            if ( -1 !== haystack.search( term ) ) {
     
    26792682        $( window ).on( 'beforeunload', function () {
    26802683            if ( ! api.state( 'saved' )() ) {
    2681                 var timeout = setTimeout( function() {
     2684                setTimeout( function() {
    26822685                    overlay.removeClass( 'customize-loading' );
    26832686                }, 1 );
  • trunk/src/wp-admin/js/post.js

    r31534 r31538  
    22/* global theList:true, theExtraList:true, getUserSetting, setUserSetting */
    33
    4 var tagBox, commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink;
     4var commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink;
    55// Back-compat: prevent fatal errors
    66makeSlugeditClickable = editPermalink = function(){};
  • trunk/src/wp-admin/js/press-this.js

    r31535 r31538  
    77        var editor,
    88            saveAlert             = false,
    9             $div                  = $( '<div>' ),
    109            siteConfig            = window.wpPressThisConfig || {},
    1110            data                  = window.wpPressThisData || {},
     
    6362                .replace( /<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/ig, '' )
    6463                .replace( /<\/?[a-z][^>]*>/ig, '' );
    65         }
    66 
    67         // TODO: needed?
    68         function entityEncode( text ) {
    69             return $div.text( text ).html();
    7064        }
    7165
     
    10281022            renderError: renderError
    10291023        };
    1030     }
     1024    };
    10311025
    10321026    window.wp = window.wp || {};
  • trunk/src/wp-admin/js/tags-box.js

    r31534 r31538  
    11/* jshint curly: false, eqeqeq: false */
    2 /* global ajaxurl, wpAjax */
    3 
    4 /**
    5  * The functions and classes in that code are a straight cut-and-paste out of
    6  * /wp-admin/js/post.js, coupled with Press This' usage of the post_tags_meta_box()
    7  * PHP function.
    8  *
    9  * If Press This makes it into core, we can refactor that code out of post.js and
    10  * make it more reusable, as well as improve it to work better, everywhere.
    11  *
    12  * Copied-and-pasted instead of enqueuing post.js because the latter has much more,
    13  * and has processing instead of just functions/classes.
    14  */
     2/* global ajaxurl */
     3
    154var tagBox, array_unique_noempty;
    165
     
    2918
    3019        return out;
    31     }
     20    };
    3221   
    3322    tagBox = {
     
    4736                taxbox = $(el).closest('.tagsdiv'),
    4837                thetags = taxbox.find('.the-tags'),
    49                 comma = window.tagsBoxL10n.tagDelimiter;
     38                comma = window.tagsBoxL10n.tagDelimiter,
    5039                current_tags = thetags.val().split( comma ),
    5140                new_tags = [];
Note: See TracChangeset for help on using the changeset viewer.