WordPress.org

Make WordPress Core

Changeset 29213


Ignore:
Timestamp:
07/17/2014 08:45:09 PM (5 years ago)
Author:
helen
Message:

Fix jshint errors introduced in [29212]. see #28842.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-grid.js

    r29212 r29213  
    1 /* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
     1/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings, confirm */
    22(function($, _, Backbone, wp) {
    33    var media = wp.media, l10n;
     
    604604    });
    605605
    606     media.view.BulkSelection = media.View.extend({
     606    media.view.BulkSelection = media.View.extend({
    607607        className: 'bulk-select',
    608608
    609609        initialize: function() {
    610610            this.model = new Backbone.Model({
    611                 currentAction: '',
     611                currentAction: ''
    612612
    613613            });
     
    632632        tagName:   'select',
    633633
    634         initialize: function() {
    635             media.view.Button.prototype.initialize.apply( this, arguments );
     634        initialize: function() {
     635            media.view.Button.prototype.initialize.apply( this, arguments );
    636636            this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
    637637            this.$el.append( $('<option></option>').val( '' ).html( l10n.bulkActions ) )
     
    643643        toggleChange: function() {
    644644            this.controller.model.set( { 'currentAction': this.$el.val() } );
    645         },
     645        },
    646646        enabled: function() {
    647647            var disabled = ! this.controller.controller.state().get('selection').length;
    648648            this.$el.prop( 'disabled', disabled );
    649         }
    650     });
     649        }
     650    });
    651651
    652652    media.view.BulkSelectionActionButton = media.view.Button.extend({
  • trunk/src/wp-includes/js/media-views.js

    r29212 r29213  
    56615661
    56625662                this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({
    5663                     controller: this.controller,
    5664                     priority: -70
    5665                 }).render() );
     5663                    controller: this.controller,
     5664                    priority: -70
     5665                }).render() );
    56665666            }
    56675667
Note: See TracChangeset for help on using the changeset viewer.