Ticket #23116: media-views.GalleryEdit.add_display_settings.patch
File media-views.GalleryEdit.add_display_settings.patch, 1.3 KB (added by , 13 years ago) |
---|
-
wp-includes/js/media-views.js
556 556 // ------------------------------- 557 557 media.controller.GalleryEdit = media.controller.Library.extend({ 558 558 defaults: { 559 id: 'gallery-edit', 560 multiple: false, 561 describe: true, 562 edge: 199, 563 editing: false, 564 sortable: true, 565 searchable: false, 566 toolbar: 'gallery-edit', 567 content: 'browse', 568 title: l10n.editGalleryTitle, 569 priority: 60, 570 dragInfo: true, 559 id: 'gallery-edit', 560 multiple: false, 561 describe: true, 562 edge: 199, 563 editing: false, 564 sortable: true, 565 searchable: false, 566 toolbar: 'gallery-edit', 567 content: 'browse', 568 title: l10n.editGalleryTitle, 569 priority: 60, 570 dragInfo: true, 571 displaySettings: true, 571 572 572 573 // Don't sync the selection, as the Edit Gallery library 573 574 // *is* the selection. … … 609 610 }, 610 611 611 612 gallerySettings: function( browser ) { 613 if ( ! this.get('displaySettings') ) 614 return; 615 612 616 var library = this.get('library'); 613 617 614 618 if ( ! library || ! browser )