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

Built from https://develop.svn.wordpress.org/trunk@29213


git-svn-id: http://core.svn.wordpress.org/trunk@28997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2014-07-17 20:46:14 +00:00
parent 06f5b5a490
commit 5267c64e5f
2 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings, confirm */
(function($, _, Backbone, wp) {
var media = wp.media, l10n;
@ -603,12 +603,12 @@
}
});
media.view.BulkSelection = media.View.extend({
media.view.BulkSelection = media.View.extend({
className: 'bulk-select',
initialize: function() {
this.model = new Backbone.Model({
currentAction: '',
currentAction: ''
});
@ -631,8 +631,8 @@
media.view.BulkSelectionActionDropdown = media.View.extend({
tagName: 'select',
initialize: function() {
media.view.Button.prototype.initialize.apply( this, arguments );
initialize: function() {
media.view.Button.prototype.initialize.apply( this, arguments );
this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
this.$el.append( $('<option></option>').val( '' ).html( l10n.bulkActions ) )
.append( $('<option></option>').val( 'delete' ).html( l10n.deletePermanently ) );
@ -642,12 +642,12 @@
toggleChange: function() {
this.controller.model.set( { 'currentAction': this.$el.val() } );
},
},
enabled: function() {
var disabled = ! this.controller.controller.state().get('selection').length;
this.$el.prop( 'disabled', disabled );
}
});
}
});
media.view.BulkSelectionActionButton = media.view.Button.extend({
tagName: 'button',

View File

@ -5660,9 +5660,9 @@
}).render() );
this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({
controller: this.controller,
priority: -70
}).render() );
controller: this.controller,
priority: -70
}).render() );
}
filters = this.options.filters;