Ticket #23205: defaultview.patch
File defaultview.patch, 835 bytes (added by , 11 years ago) |
---|
-
media-views.js
689 689 690 690 // If we haven't been provided a `library`, create a `Selection`. 691 691 if ( ! this.get('library') ) 692 this.set( 'library', media.query({ type: 'image' }) );692 this.set( 'library', media.query({ type: 'image', uploadedTo: media.view.settings.post.id, orderby: 'menuOrder', order: 'ASC' }) ); 693 693 694 694 media.controller.Library.prototype.initialize.apply( this, arguments ); 695 695 … … 1475 1475 1476 1476 _.defaults( this.options, { 1477 1477 selection: [], 1478 library: {}, 1478 library: { 1479 uploadedTo: media.view.settings.post.id, 1480 orderby: 'menuOrder', 1481 order: 'ASC'}, 1479 1482 multiple: false, 1480 1483 state: 'library' 1481 1484 });