Changeset 22552
- Timestamp:
- 11/12/2012 11:52:17 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/css/media-views.css
r22547 r22552 620 620 } 621 621 622 623 .attachments-browser .media-toolbar-primary > .media-button, 624 .attachments-browser .media-toolbar-primary > .media-button-group, 625 .attachments-browser .media-toolbar-secondary > .media-button, 626 .attachments-browser .media-toolbar-secondary > .media-button-group { 627 margin-top: 10px; 628 } 629 622 630 .attachments-browser .attachments { 623 631 position: absolute; -
trunk/wp-includes/js/media-views.js
r22548 r22552 471 471 media.controller.Upload = media.controller.Library.extend({ 472 472 defaults: _.defaults({ 473 id: 'upload' 473 id: 'upload', 474 upload: { text: l10n.uploadMoreFiles }, 475 searchable: false 474 476 }, media.controller.Library.prototype.defaults ), 475 477 … … 853 855 sortable: state.get('sortable'), 854 856 search: state.get('searchable'), 857 upload: state.get('upload'), 855 858 856 859 AttachmentView: state.get('AttachmentView') … … 1527 1530 1528 1531 $placeholder = this.$('.browser'); 1529 $browser. text( $placeholder.text() );1532 $browser.detach().text( $placeholder.text() ); 1530 1533 $browser[0].className = $placeholder[0].className; 1531 1534 $placeholder.replaceWith( $browser.show() ); … … 2506 2509 } 2507 2510 2511 if ( this.options.upload && this.controller.uploader ) { 2512 this.toolbar.set( 'upload', new media.view.Button( _.extend({ 2513 el: this.controller.uploader.$browser.detach()[0], 2514 priority: -60, 2515 size: 'large', 2516 text: l10n.selectFiles 2517 }, this.options.upload ) ).render() ); 2518 } 2519 2508 2520 this.attachments = new media.view.Attachments({ 2509 2521 controller: this.controller, -
trunk/wp-includes/media.php
r22547 r22552 1340 1340 'selectFiles' => __( 'Select files' ), 1341 1341 'uploadImagesTitle' => __( 'Upload Images' ), 1342 'uploadMoreFiles' => __( 'Upload more files' ), 1342 1343 1343 1344 // Library
Note: See TracChangeset
for help on using the changeset viewer.