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:
parent
06f5b5a490
commit
5267c64e5f
@ -1,4 +1,4 @@
|
|||||||
/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */
|
/* global _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings, confirm */
|
||||||
(function($, _, Backbone, wp) {
|
(function($, _, Backbone, wp) {
|
||||||
var media = wp.media, l10n;
|
var media = wp.media, l10n;
|
||||||
|
|
||||||
@ -603,12 +603,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
media.view.BulkSelection = media.View.extend({
|
media.view.BulkSelection = media.View.extend({
|
||||||
className: 'bulk-select',
|
className: 'bulk-select',
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.model = new Backbone.Model({
|
this.model = new Backbone.Model({
|
||||||
currentAction: '',
|
currentAction: ''
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -631,8 +631,8 @@
|
|||||||
media.view.BulkSelectionActionDropdown = media.View.extend({
|
media.view.BulkSelectionActionDropdown = media.View.extend({
|
||||||
tagName: 'select',
|
tagName: 'select',
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
media.view.Button.prototype.initialize.apply( this, arguments );
|
media.view.Button.prototype.initialize.apply( this, arguments );
|
||||||
this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
|
this.listenTo( this.controller.controller.state().get( 'selection' ), 'add remove reset', _.bind( this.enabled, this ) );
|
||||||
this.$el.append( $('<option></option>').val( '' ).html( l10n.bulkActions ) )
|
this.$el.append( $('<option></option>').val( '' ).html( l10n.bulkActions ) )
|
||||||
.append( $('<option></option>').val( 'delete' ).html( l10n.deletePermanently ) );
|
.append( $('<option></option>').val( 'delete' ).html( l10n.deletePermanently ) );
|
||||||
@ -642,12 +642,12 @@
|
|||||||
|
|
||||||
toggleChange: function() {
|
toggleChange: function() {
|
||||||
this.controller.model.set( { 'currentAction': this.$el.val() } );
|
this.controller.model.set( { 'currentAction': this.$el.val() } );
|
||||||
},
|
},
|
||||||
enabled: function() {
|
enabled: function() {
|
||||||
var disabled = ! this.controller.controller.state().get('selection').length;
|
var disabled = ! this.controller.controller.state().get('selection').length;
|
||||||
this.$el.prop( 'disabled', disabled );
|
this.$el.prop( 'disabled', disabled );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
media.view.BulkSelectionActionButton = media.view.Button.extend({
|
media.view.BulkSelectionActionButton = media.view.Button.extend({
|
||||||
tagName: 'button',
|
tagName: 'button',
|
||||||
|
@ -5660,9 +5660,9 @@
|
|||||||
}).render() );
|
}).render() );
|
||||||
|
|
||||||
this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({
|
this.toolbar.set( 'BulkSelection', new media.view.BulkSelection({
|
||||||
controller: this.controller,
|
controller: this.controller,
|
||||||
priority: -70
|
priority: -70
|
||||||
}).render() );
|
}).render() );
|
||||||
}
|
}
|
||||||
|
|
||||||
filters = this.options.filters;
|
filters = this.options.filters;
|
||||||
|
Loading…
Reference in New Issue
Block a user