Changeset 22173 for trunk/wp-includes/js/media-views.js
- Timestamp:
- 10/10/2012 11:32:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22161 r22173 386 386 387 387 events: { 388 'click': 'toggleSelection', 389 'mouseenter': 'shrink', 390 'mouseleave': 'expand' 388 'click .attachment-preview': 'toggleSelection', 389 'mouseenter .attachment-preview': 'shrink', 390 'mouseleave .attachment-preview': 'expand', 391 'change .describe': 'describe' 391 392 }, 392 393 … … 416 417 }); 417 418 418 options.buttons = this.buttons; 419 options.buttons = this.buttons; 420 options.describe = this.controller.get('describe'); 419 421 420 422 if ( 'image' === options.type ) … … 534 536 height: 199 535 537 }); 538 }, 539 540 describe: function( event ) { 541 if ( 'image' === this.model.get('type') ) 542 this.model.save( 'caption', event.target.value ); 543 else 544 this.model.save( 'title', event.target.value ); 536 545 } 537 546 }); … … 818 827 819 828 events: { 820 'keyup input': 'search'829 'keyup .search': 'search' 821 830 }, 822 831
Note: See TracChangeset
for help on using the changeset viewer.