Changeset 22651
- Timestamp:
- 11/19/2012 01:17:30 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22649 r22651 2205 2205 'change [data-setting] select': 'updateSetting', 2206 2206 'change [data-setting] textarea': 'updateSetting', 2207 'click .close': 'removeFromLibrary' 2207 'click .close': 'removeFromLibrary', 2208 'click a': 'preventDefault' 2208 2209 }, 2209 2210 … … 2221 2222 this.model.on( 'selection:single selection:unsingle', this.details, this ); 2222 2223 this.details( this.model, this.controller.state().get('selection') ); 2223 2224 // Prevent default navigation on all links.2225 this.$el.on( 'click', 'a', this.preventDefault );2226 2224 }, 2227 2225 2228 2226 destroy: function() { 2229 2227 this.model.off( null, null, this ); 2230 this.$el.off( 'click', 'a', this.preventDefault );2231 2228 this.remove(); 2232 2229 },
Note: See TracChangeset
for help on using the changeset viewer.