diff --git src/wp-includes/js/media-grid.js src/wp-includes/js/media-grid.js
index 01db38b..e29494f 100644
|
|
|
var Button = wp.media.view.Button, |
| 150 | 150 | DeleteSelectedPermanently = DeleteSelected.extend({ |
| 151 | 151 | initialize: function() { |
| 152 | 152 | DeleteSelected.prototype.initialize.apply( this, arguments ); |
| 153 | | this.listenTo( this.controller, 'select:activate', this.selectActivate ); |
| 154 | | this.listenTo( this.controller, 'select:deactivate', this.selectDeactivate ); |
| | 153 | this.controller.on( 'select:activate', this.selectActivate, this ); |
| | 154 | this.controller.on( 'select:deactivate', this.selectDeactivate, this ); |
| 155 | 155 | }, |
| 156 | 156 | |
| 157 | 157 | filterChange: function( model ) { |
| … |
… |
DeleteSelected = Button.extend({ |
| 197 | 197 | initialize: function() { |
| 198 | 198 | Button.prototype.initialize.apply( this, arguments ); |
| 199 | 199 | if ( this.options.filters ) { |
| 200 | | this.listenTo( this.options.filters.model, 'change', this.filterChange ); |
| | 200 | this.options.filters.model.on( 'change', this.filterChange, this ); |
| 201 | 201 | } |
| 202 | | this.listenTo( this.controller, 'selection:toggle', this.toggleDisabled ); |
| | 202 | this.controller.on( 'selection:toggle', this.toggleDisabled, this ); |
| 203 | 203 | }, |
| 204 | 204 | |
| 205 | 205 | filterChange: function( model ) { |
| … |
… |
SelectModeToggle = Button.extend({ |
| 251 | 251 | } ); |
| 252 | 252 | |
| 253 | 253 | Button.prototype.initialize.apply( this, arguments ); |
| 254 | | this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); |
| 255 | | this.listenTo( this.controller, 'selection:action:done', this.back ); |
| | 254 | this.controller.on( 'select:activate select:deactivate', this.toggleBulkEditHandler, this ); |
| | 255 | this.controller.on( 'selection:action:done', this.back, this ); |
| 256 | 256 | }, |
| 257 | 257 | |
| 258 | 258 | back: function () { |