Changeset 30777
- Timestamp:
- 12/07/2014 08:10:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r30686 r30777 5244 5244 } 5245 5245 5246 event.preventDefault(); 5247 5246 5248 // In the grid view, bubble up an edit:attachment event to the controller. 5247 5249 if ( this.controller.isModeActive( 'grid' ) ) { … … 5249 5251 // Pass the current target to restore focus when closing 5250 5252 this.controller.trigger( 'edit:attachment', this.model, event.currentTarget ); 5251 5252 // Don't scroll the view and don't attempt to submit anything.5253 event.stopPropagation();5254 5253 return; 5255 5254 } … … 5271 5270 5272 5271 this.controller.trigger( 'selection:toggle' ); 5273 5274 // Don't scroll the view and don't attempt to submit anything.5275 event.stopPropagation();5276 5272 }, 5277 5273 /**
Note: See TracChangeset
for help on using the changeset viewer.