Ticket #28510: 28510.2.patch
File 28510.2.patch, 85.3 KB (added by , 10 years ago) |
---|
-
Gruntfile.js
235 235 '!twenty{fourteen,fifteen}/js/html5.js' 236 236 ] 237 237 }, 238 media: { 239 options: { 240 browserify: true 241 }, 242 expand: true, 243 cwd: SOURCE_DIR, 244 src: [ 245 'wp-includes/js/media/**/*.js', 246 '!wp-includes/js/media/*.js', 247 'wp-includes/js/media/*.manifest.js' 248 ] 249 }, 238 250 core: { 239 251 expand: true, 240 252 cwd: SOURCE_DIR, … … 507 519 grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']); 508 520 509 521 // JSHint task. 510 grunt.registerTask('jshint:corejs', ['jshint:grunt', 'jshint:tests', 'jshint:themes', 'jshint:core']); 522 grunt.registerTask( 'jshint:corejs', [ 523 'jshint:grunt', 524 'jshint:tests', 525 'jshint:themes', 526 'jshint:core', 527 'jshint:media' 528 ] ); 511 529 512 530 // Pre-commit task. 513 531 grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.', -
src/wp-includes/js/media/audio-video.js
223 223 media.view.VideoDetails = require( './views/video-details.js' ); 224 224 225 225 }(_)); 226 226 227 },{"./controllers/audio-details.js":2,"./controllers/video-details.js":8,"./models/post-media.js":9,"./views/audio-details.js":21,"./views/frame/audio-details.js":25,"./views/frame/media-details.js":26,"./views/frame/video-details.js":28,"./views/media-details.js":31,"./views/video-details.js":50}],2:[function(require,module,exports){ 227 228 /*globals wp */ 228 229 … … 255 256 }); 256 257 257 258 module.exports = AudioDetails; 259 258 260 },{"./state.js":7}],3:[function(require,module,exports){ 259 261 /*globals _, wp, Backbone, getUserSetting, setUserSetting */ 260 262 … … 528 530 _.extend( Library.prototype, selectionSync ); 529 531 530 532 module.exports = Library; 533 531 534 },{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){ 532 535 /*globals _, wp */ 533 536 … … 579 582 }); 580 583 581 584 module.exports = MediaLibrary; 585 582 586 },{"./library.js":3}],5:[function(require,module,exports){ 583 587 /*globals _, Backbone */ 584 588 … … 759 763 }); 760 764 761 765 module.exports = Region; 766 762 767 },{}],6:[function(require,module,exports){ 763 768 /*globals _, Backbone */ 764 769 … … 884 889 }); 885 890 886 891 module.exports = StateMachine; 892 887 893 },{}],7:[function(require,module,exports){ 888 894 /*globals _, Backbone */ 889 895 … … 1126 1132 }); 1127 1133 1128 1134 module.exports = State; 1135 1129 1136 },{}],8:[function(require,module,exports){ 1130 1137 /*globals wp */ 1131 1138 … … 1158 1165 }); 1159 1166 1160 1167 module.exports = VideoDetails; 1168 1161 1169 },{"./state.js":7}],9:[function(require,module,exports){ 1162 1170 /*globals Backbone, _, wp */ 1163 1171 … … 1199 1207 }); 1200 1208 1201 1209 module.exports = PostMedia; 1210 1202 1211 },{}],10:[function(require,module,exports){ 1203 1212 /*globals _ */ 1204 1213 … … 1266 1275 }; 1267 1276 1268 1277 module.exports = selectionSync; 1278 1269 1279 },{}],11:[function(require,module,exports){ 1270 1280 /*globals _ */ 1271 1281 … … 1352 1362 }); 1353 1363 1354 1364 module.exports = AttachmentCompat; 1365 1355 1366 },{"./view.js":51}],12:[function(require,module,exports){ 1356 1367 /*globals _, jQuery */ 1357 1368 … … 1431 1442 }); 1432 1443 1433 1444 module.exports = AttachmentFilters; 1445 1434 1446 },{"./view.js":51}],13:[function(require,module,exports){ 1435 1447 /*globals _, wp */ 1436 1448 … … 1523 1535 }); 1524 1536 1525 1537 module.exports = All; 1538 1526 1539 },{"../attachment-filters.js":12}],14:[function(require,module,exports){ 1527 1540 /*globals _, wp */ 1528 1541 … … 1566 1579 }); 1567 1580 1568 1581 module.exports = DateFilter; 1582 1569 1583 },{"../attachment-filters.js":12}],15:[function(require,module,exports){ 1570 1584 /*globals wp */ 1571 1585 … … 1627 1641 }); 1628 1642 1629 1643 module.exports = Uploaded; 1644 1630 1645 },{"../attachment-filters.js":12}],16:[function(require,module,exports){ 1631 1646 /*globals _, wp, jQuery */ 1632 1647 … … 2182 2197 }); 2183 2198 2184 2199 module.exports = Attachment; 2200 2185 2201 },{"./view.js":51}],17:[function(require,module,exports){ 2186 2202 /*globals _, wp */ 2187 2203 … … 2323 2339 }); 2324 2340 2325 2341 module.exports = Details; 2342 2326 2343 },{"../attachment.js":16}],18:[function(require,module,exports){ 2327 2344 /** 2328 2345 * wp.media.view.Attachment.Library … … 2343 2360 }); 2344 2361 2345 2362 module.exports = Library; 2363 2346 2364 },{"../attachment.js":16}],19:[function(require,module,exports){ 2347 2365 /*globals _, wp, jQuery */ 2348 2366 … … 2644 2662 }); 2645 2663 2646 2664 module.exports = Attachments; 2665 2647 2666 },{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){ 2648 2667 /*globals _, wp, jQuery */ 2649 2668 … … 3104 3123 }); 3105 3124 3106 3125 module.exports = AttachmentsBrowser; 3126 3107 3127 },{"../attachment-compat.js":11,"../attachment-filters/all.js":13,"../attachment-filters/date.js":14,"../attachment-filters/uploaded.js":15,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":30,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":46,"../uploader/status.js":48,"../view.js":51}],21:[function(require,module,exports){ 3108 3128 /*globals wp */ 3109 3129 … … 3143 3163 }); 3144 3164 3145 3165 module.exports = AudioDetails; 3166 3146 3167 },{"./media-details":31}],22:[function(require,module,exports){ 3147 3168 /*globals _, Backbone */ 3148 3169 … … 3233 3254 }); 3234 3255 3235 3256 module.exports = Button; 3257 3236 3258 },{"./view.js":51}],23:[function(require,module,exports){ 3237 3259 /** 3238 3260 * wp.media.view.FocusManager … … 3281 3303 }); 3282 3304 3283 3305 module.exports = FocusManager; 3306 3284 3307 },{"./view.js":51}],24:[function(require,module,exports){ 3285 3308 /*globals _, Backbone */ 3286 3309 … … 3454 3477 _.extend( Frame.prototype, StateMachine.prototype ); 3455 3478 3456 3479 module.exports = Frame; 3480 3457 3481 },{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){ 3458 3482 /*globals wp */ 3459 3483 … … 3532 3556 }); 3533 3557 3534 3558 module.exports = AudioDetails; 3559 3535 3560 },{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){ 3536 3561 /*globals wp */ 3537 3562 … … 3665 3690 }); 3666 3691 3667 3692 module.exports = MediaDetails; 3693 3668 3694 },{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){ 3669 3695 /*globals _, wp */ 3670 3696 … … 3840 3866 }); 3841 3867 3842 3868 module.exports = Select; 3869 3843 3870 },{"../../controllers/library.js":3,"../attachments/browser.js":20,"../media-frame.js":32,"../toolbar/select.js":45,"../uploader/inline.js":46}],28:[function(require,module,exports){ 3844 3871 /*globals _, wp */ 3845 3872 … … 3978 4005 }); 3979 4006 3980 4007 module.exports = VideoDetails; 4008 3981 4009 },{"../../controllers/media-library.js":4,"../../controllers/video-details.js":8,"../video-details.js":50,"./media-details":26}],29:[function(require,module,exports){ 3982 4010 /** 3983 4011 * wp.media.view.Iframe … … 4004 4032 }); 4005 4033 4006 4034 module.exports = Iframe; 4035 4007 4036 },{"./view.js":51}],30:[function(require,module,exports){ 4008 4037 /** 4009 4038 * @class … … 4030 4059 }); 4031 4060 4032 4061 module.exports = Label; 4062 4033 4063 },{"./view.js":51}],31:[function(require,module,exports){ 4034 4064 /*globals _, wp, jQuery */ 4035 4065 … … 4183 4213 }); 4184 4214 4185 4215 module.exports = MediaDetails; 4216 4186 4217 },{"./settings/attachment-display.js":41}],32:[function(require,module,exports){ 4187 4218 /*globals _, wp, jQuery */ 4188 4219 … … 4438 4469 }); 4439 4470 4440 4471 module.exports = MediaFrame; 4472 4441 4473 },{"./frame.js":24,"./iframe.js":29,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":49,"./view.js":51}],33:[function(require,module,exports){ 4442 4474 /*globals wp, jQuery */ 4443 4475 … … 4512 4544 }); 4513 4545 4514 4546 module.exports = MenuItem; 4547 4515 4548 },{"./view.js":51}],34:[function(require,module,exports){ 4516 4549 /** 4517 4550 * wp.media.view.Menu … … 4628 4661 }); 4629 4662 4630 4663 module.exports = Menu; 4664 4631 4665 },{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){ 4632 4666 /*globals _, wp, jQuery */ 4633 4667 … … 4844 4878 }); 4845 4879 4846 4880 module.exports = Modal; 4881 4847 4882 },{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){ 4848 4883 /*globals _, Backbone */ 4849 4884 … … 4945 4980 }); 4946 4981 4947 4982 module.exports = PriorityList; 4983 4948 4984 },{"./view.js":51}],37:[function(require,module,exports){ 4949 4985 /** 4950 4986 * wp.media.view.RouterItem … … 4971 5007 }); 4972 5008 4973 5009 module.exports = RouterItem; 5010 4974 5011 },{"./menu-item.js":33}],38:[function(require,module,exports){ 4975 5012 /** 4976 5013 * wp.media.view.Router … … 5008 5045 }); 5009 5046 5010 5047 module.exports = Router; 5048 5011 5049 },{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){ 5012 5050 /*globals wp */ 5013 5051 … … 5058 5096 }); 5059 5097 5060 5098 module.exports = Search; 5099 5061 5100 },{"./view.js":51}],40:[function(require,module,exports){ 5062 5101 /*globals _, Backbone, jQuery */ 5063 5102 … … 5180 5219 }); 5181 5220 5182 5221 module.exports = Settings; 5222 5183 5223 },{"./view.js":51}],41:[function(require,module,exports){ 5184 5224 /*globals _, wp */ 5185 5225 … … 5275 5315 }); 5276 5316 5277 5317 module.exports = AttachmentDisplay; 5318 5278 5319 },{"../settings.js":40}],42:[function(require,module,exports){ 5279 5320 /** 5280 5321 * wp.media.view.Sidebar … … 5293 5334 }); 5294 5335 5295 5336 module.exports = Sidebar; 5337 5296 5338 },{"./priority-list.js":36}],43:[function(require,module,exports){ 5297 5339 /*globals _, wp */ 5298 5340 … … 5332 5374 }); 5333 5375 5334 5376 module.exports = Spinner; 5377 5335 5378 },{"./view.js":51}],44:[function(require,module,exports){ 5336 5379 /*globals Backbone, _ */ 5337 5380 … … 5495 5538 }); 5496 5539 5497 5540 module.exports = Toolbar; 5541 5498 5542 },{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){ 5499 5543 /*globals _, wp */ 5500 5544 … … 5566 5610 }); 5567 5611 5568 5612 module.exports = Select; 5613 5569 5614 },{"../toolbar.js":44}],46:[function(require,module,exports){ 5570 5615 /*globals _, wp */ 5571 5616 … … 5699 5744 }); 5700 5745 5701 5746 module.exports = UploaderInline; 5747 5702 5748 },{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){ 5703 5749 /*globals wp */ 5704 5750 … … 5719 5765 }); 5720 5766 5721 5767 module.exports = UploaderStatusError; 5768 5722 5769 },{"../view.js":51}],48:[function(require,module,exports){ 5723 5770 /*globals _, wp */ 5724 5771 … … 5859 5906 }); 5860 5907 5861 5908 module.exports = UploaderStatus; 5909 5862 5910 },{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){ 5863 5911 /*globals _, wp, jQuery */ 5864 5912 … … 5972 6020 }); 5973 6021 5974 6022 module.exports = UploaderWindow; 6023 5975 6024 },{"../view.js":51}],50:[function(require,module,exports){ 5976 6025 /*globals wp */ 5977 6026 … … 6016 6065 }); 6017 6066 6018 6067 module.exports = VideoDetails; 6068 6019 6069 },{"./media-details":31}],51:[function(require,module,exports){ 6020 6070 /*globals wp */ 6021 6071 … … 6083 6133 }); 6084 6134 6085 6135 module.exports = View; 6136 6086 6137 },{}]},{},[1]); -
src/wp-includes/js/media/audio-video.manifest.js
1 /* global wp, _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer*/1 /* global _wpMediaViewsL10n, _wpmejsSettings */ 2 2 3 3 (function(_) { 4 4 var media = wp.media, … … 132 132 var content; 133 133 134 134 _.each( this.defaults, function( value, key ) { 135 model[ key ] = self.coerce( model, key );135 model[ key ] = this.coerce( model, key ); 136 136 137 137 if ( value === model[ key ] ) { 138 138 delete model[ key ]; … … 221 221 media.view.AudioDetails = require( './views/audio-details.js' ); 222 222 media.view.VideoDetails = require( './views/video-details.js' ); 223 223 224 }(_)); 225 No newline at end of file 224 }(_)); -
src/wp-includes/js/media/controllers/audio-details.js
1 /*globals wp */2 3 1 /** 4 2 * The controller for the Audio Details state 5 3 * … … 28 26 } 29 27 }); 30 28 31 module.exports = AudioDetails; 32 No newline at end of file 29 module.exports = AudioDetails; -
src/wp-includes/js/media/controllers/collection-add.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.CollectionAdd 5 3 * … … 98 96 } 99 97 }); 100 98 101 module.exports = CollectionAdd; 102 No newline at end of file 99 module.exports = CollectionAdd; -
src/wp-includes/js/media/controllers/collection-edit.js
1 /*globals wp, jQuery, Backbone */2 3 1 /** 4 2 * wp.media.controller.CollectionEdit 5 3 * … … 159 157 } 160 158 }); 161 159 162 module.exports = CollectionEdit; 163 No newline at end of file 160 module.exports = CollectionEdit; -
src/wp-includes/js/media/controllers/cropper.js
1 /*globals _, wp, Backbone */2 3 1 /** 4 2 * wp.media.controller.Cropper 5 3 * … … 75 73 76 74 this.$el.text(l10n.cropping); 77 75 this.$el.attr('disabled', true); 78 76 79 77 controller.state().doCrop( selection ).done( function( croppedImage ) { 80 78 controller.trigger('cropped', croppedImage ); 81 79 controller.close(); … … 116 114 } 117 115 }); 118 116 119 module.exports = Cropper; 120 No newline at end of file 117 module.exports = Cropper; -
src/wp-includes/js/media/controllers/edit-attachment-metadata.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.controller.EditAttachmentMetadata 5 3 * … … 26 24 } 27 25 }); 28 26 29 module.exports = EditAttachmentMetadata; 30 No newline at end of file 27 module.exports = EditAttachmentMetadata; -
src/wp-includes/js/media/controllers/edit-image.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.EditImage 5 3 * … … 75 73 } 76 74 }); 77 75 78 module.exports = EditImage; 79 No newline at end of file 76 module.exports = EditImage; -
src/wp-includes/js/media/controllers/embed.js
1 /*globals _, wp, jQuery, Backbone */2 3 1 /** 4 2 * wp.media.controller.Embed 5 3 * … … 134 132 } 135 133 }); 136 134 137 module.exports = Embed; 138 No newline at end of file 135 module.exports = Embed; -
src/wp-includes/js/media/controllers/featured-image.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.FeaturedImage 5 3 * … … 119 117 } 120 118 }); 121 119 122 module.exports = FeaturedImage; 123 No newline at end of file 120 module.exports = FeaturedImage; -
src/wp-includes/js/media/controllers/gallery-add.js
1 /*globals _, wp */2 3 1 /** 4 2 * A state for selecting more images to add to a gallery. 5 3 * … … 51 49 */ 52 50 initialize: function() { 53 51 // If a library wasn't supplied, create a library of images. 54 if ( ! this.get('library') ) 52 if ( ! this.get('library') ) { 55 53 this.set( 'library', wp.media.query({ type: 'image' }) ); 54 } 56 55 57 56 Library.prototype.initialize.apply( this, arguments ); 58 57 }, … … 64 63 var library = this.get('library'), 65 64 edit = this.frame.state('gallery-edit').get('library'); 66 65 67 if ( this.editLibrary && this.editLibrary !== edit ) 66 if ( this.editLibrary && this.editLibrary !== edit ) { 68 67 library.unobserve( this.editLibrary ); 68 } 69 69 70 70 // Accepts attachments that exist in the original library and 71 71 // that do not exist in gallery's library. … … 84 84 } 85 85 }); 86 86 87 module.exports = GalleryAdd; 88 No newline at end of file 87 module.exports = GalleryAdd; -
src/wp-includes/js/media/controllers/gallery-edit.js
1 /*globals wp, Backbone */2 3 1 /** 4 2 * wp.media.controller.GalleryEdit 5 3 * … … 61 59 */ 62 60 initialize: function() { 63 61 // If we haven't been provided a `library`, create a `Selection`. 64 if ( ! this.get('library') ) 62 if ( ! this.get('library') ) { 65 63 this.set( 'library', new wp.media.model.Selection() ); 64 } 66 65 67 66 // The single `Attachment` view to be used in the `Attachments` view. 68 if ( ! this.get('AttachmentView') ) 67 if ( ! this.get('AttachmentView') ) { 69 68 this.set( 'AttachmentView', EditLibraryView ); 69 } 70 70 71 Library.prototype.initialize.apply( this, arguments ); 71 72 }, 72 73 … … 136 137 } 137 138 }); 138 139 139 module.exports = GalleryEdit; 140 No newline at end of file 140 module.exports = GalleryEdit; -
src/wp-includes/js/media/controllers/image-details.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.ImageDetails 5 3 * … … 59 57 } 60 58 }); 61 59 62 module.exports = ImageDetails; 63 No newline at end of file 60 module.exports = ImageDetails; -
src/wp-includes/js/media/controllers/library.js
1 /* globals _, wp, Backbone,getUserSetting, setUserSetting */1 /* globals getUserSetting, setUserSetting */ 2 2 3 3 /** 4 4 * wp.media.controller.Library … … 71 71 this.set( 'library', wp.media.query() ); 72 72 } 73 73 74 if ( ! ( selection instanceof Selection) ) {74 if ( ! ( selection instanceof wp.media.model.Selection ) ) { 75 75 props = selection; 76 76 77 77 if ( ! props ) { … … 269 269 // Make selectionSync available on any Media Library state. 270 270 _.extend( Library.prototype, selectionSync ); 271 271 272 module.exports = Library; 273 No newline at end of file 272 module.exports = Library; -
src/wp-includes/js/media/controllers/media-library.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.MediaLibrary 5 3 * … … 47 45 } 48 46 }); 49 47 50 module.exports = MediaLibrary; 51 No newline at end of file 48 module.exports = MediaLibrary; -
src/wp-includes/js/media/controllers/region.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.controller.Region 5 3 * … … 176 174 } 177 175 }); 178 176 179 module.exports = Region; 180 No newline at end of file 177 module.exports = Region; -
src/wp-includes/js/media/controllers/replace-image.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.controller.ReplaceImage 5 3 * … … 105 103 } 106 104 }); 107 105 108 module.exports = ReplaceImage; 109 No newline at end of file 106 module.exports = ReplaceImage; -
src/wp-includes/js/media/controllers/state-machine.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.controller.StateMachine 5 3 * … … 121 119 }; 122 120 }); 123 121 124 module.exports = StateMachine; 125 No newline at end of file 122 module.exports = StateMachine; -
src/wp-includes/js/media/controllers/state.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.controller.State 5 3 * … … 238 236 }; 239 237 }); 240 238 241 module.exports = State; 242 No newline at end of file 239 module.exports = State; -
src/wp-includes/js/media/controllers/video-details.js
1 /*globals wp */2 3 1 /** 4 2 * The controller for the Video Details state 5 3 * … … 28 26 } 29 27 }); 30 28 31 module.exports = VideoDetails; 32 No newline at end of file 29 module.exports = VideoDetails; -
src/wp-includes/js/media/grid.js
28 28 }); 29 29 30 30 module.exports = EditAttachmentMetadata; 31 31 32 },{"./state.js":6}],2:[function(require,module,exports){ 32 33 /*globals _, wp */ 33 34 … … 107 108 }); 108 109 109 110 module.exports = EditImage; 111 110 112 },{"../views/toolbar.js":46,"./state.js":6}],3:[function(require,module,exports){ 111 113 /*globals _, wp, Backbone, getUserSetting, setUserSetting */ 112 114 … … 380 382 _.extend( Library.prototype, selectionSync ); 381 383 382 384 module.exports = Library; 385 383 386 },{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){ 384 387 /*globals _, Backbone */ 385 388 … … 560 563 }); 561 564 562 565 module.exports = Region; 566 563 567 },{}],5:[function(require,module,exports){ 564 568 /*globals _, Backbone */ 565 569 … … 685 689 }); 686 690 687 691 module.exports = StateMachine; 692 688 693 },{}],6:[function(require,module,exports){ 689 694 /*globals _, Backbone */ 690 695 … … 927 932 }); 928 933 929 934 module.exports = State; 935 930 936 },{}],7:[function(require,module,exports){ 931 937 /* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */ 932 938 (function (wp) { … … 943 949 media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' ); 944 950 945 951 }(wp)); 952 946 953 },{"./controllers/edit-attachment-metadata.js":1,"./routers/manage.js":8,"./views/attachment/details-two-column.js":16,"./views/button/delete-selected-permanently.js":22,"./views/button/delete-selected.js":23,"./views/button/select-mode-toggle.js":24,"./views/edit-image-details.js":25,"./views/frame/edit-attachments.js":29,"./views/frame/manage.js":30}],8:[function(require,module,exports){ 947 954 /*globals jQuery, Backbone */ 948 955 … … 990 997 }); 991 998 992 999 module.exports = Router; 1000 993 1001 },{}],9:[function(require,module,exports){ 994 1002 /*globals _ */ 995 1003 … … 1057 1065 }; 1058 1066 1059 1067 module.exports = selectionSync; 1068 1060 1069 },{}],10:[function(require,module,exports){ 1061 1070 /*globals _ */ 1062 1071 … … 1143 1152 }); 1144 1153 1145 1154 module.exports = AttachmentCompat; 1155 1146 1156 },{"./view.js":51}],11:[function(require,module,exports){ 1147 1157 /*globals _, jQuery */ 1148 1158 … … 1222 1232 }); 1223 1233 1224 1234 module.exports = AttachmentFilters; 1235 1225 1236 },{"./view.js":51}],12:[function(require,module,exports){ 1226 1237 /*globals _, wp */ 1227 1238 … … 1314 1325 }); 1315 1326 1316 1327 module.exports = All; 1328 1317 1329 },{"../attachment-filters.js":11}],13:[function(require,module,exports){ 1318 1330 /*globals _, wp */ 1319 1331 … … 1357 1369 }); 1358 1370 1359 1371 module.exports = DateFilter; 1372 1360 1373 },{"../attachment-filters.js":11}],14:[function(require,module,exports){ 1361 1374 /*globals wp */ 1362 1375 … … 1418 1431 }); 1419 1432 1420 1433 module.exports = Uploaded; 1434 1421 1435 },{"../attachment-filters.js":11}],15:[function(require,module,exports){ 1422 1436 /*globals _, wp, jQuery */ 1423 1437 … … 1973 1987 }); 1974 1988 1975 1989 module.exports = Attachment; 1990 1976 1991 },{"./view.js":51}],16:[function(require,module,exports){ 1977 1992 /*globals wp */ 1978 1993 … … 2016 2031 }); 2017 2032 2018 2033 module.exports = TwoColumn; 2034 2019 2035 },{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){ 2020 2036 /*globals _, wp */ 2021 2037 … … 2157 2173 }); 2158 2174 2159 2175 module.exports = Details; 2176 2160 2177 },{"../attachment.js":15}],18:[function(require,module,exports){ 2161 2178 /** 2162 2179 * wp.media.view.Attachment.Library … … 2177 2194 }); 2178 2195 2179 2196 module.exports = Library; 2197 2180 2198 },{"../attachment.js":15}],19:[function(require,module,exports){ 2181 2199 /*globals _, wp, jQuery */ 2182 2200 … … 2478 2496 }); 2479 2497 2480 2498 module.exports = Attachments; 2499 2481 2500 },{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){ 2482 2501 /*globals _, wp, jQuery */ 2483 2502 … … 2938 2957 }); 2939 2958 2940 2959 module.exports = AttachmentsBrowser; 2960 2941 2961 },{"../attachment-compat.js":10,"../attachment-filters/all.js":12,"../attachment-filters/date.js":13,"../attachment-filters/uploaded.js":14,"../attachment/details.js":17,"../attachment/library.js":18,"../attachments.js":19,"../label.js":32,"../search.js":41,"../settings/attachment-display.js":43,"../sidebar.js":44,"../spinner.js":45,"../toolbar.js":46,"../uploader/inline.js":47,"../uploader/status.js":49,"../view.js":51}],21:[function(require,module,exports){ 2942 2962 /*globals _, Backbone */ 2943 2963 … … 3028 3048 }); 3029 3049 3030 3050 module.exports = Button; 3051 3031 3052 },{"./view.js":51}],22:[function(require,module,exports){ 3032 3053 /** 3033 3054 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic … … 3072 3093 }); 3073 3094 3074 3095 module.exports = DeleteSelectedPermanently; 3096 3075 3097 },{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){ 3076 3098 /*globals wp */ 3077 3099 … … 3124 3146 }); 3125 3147 3126 3148 module.exports = DeleteSelected; 3149 3127 3150 },{"../button.js":21}],24:[function(require,module,exports){ 3128 3151 /*globals wp */ 3129 3152 … … 3180 3203 }); 3181 3204 3182 3205 module.exports = SelectModeToggle; 3206 3183 3207 },{"../button.js":21}],25:[function(require,module,exports){ 3184 3208 var View = require( './view.js' ), 3185 3209 EditImage = require( './edit-image.js' ), … … 3205 3229 }); 3206 3230 3207 3231 module.exports = Details; 3232 3208 3233 },{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){ 3209 3234 /*globals _, wp */ 3210 3235 … … 3259 3284 }); 3260 3285 3261 3286 module.exports = EditImage; 3287 3262 3288 },{"./view.js":51}],27:[function(require,module,exports){ 3263 3289 /** 3264 3290 * wp.media.view.FocusManager … … 3307 3333 }); 3308 3334 3309 3335 module.exports = FocusManager; 3336 3310 3337 },{"./view.js":51}],28:[function(require,module,exports){ 3311 3338 /*globals _, Backbone */ 3312 3339 … … 3480 3507 _.extend( Frame.prototype, StateMachine.prototype ); 3481 3508 3482 3509 module.exports = Frame; 3510 3483 3511 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){ 3484 3512 /*globals _, wp, jQuery */ 3485 3513 … … 3727 3755 }); 3728 3756 3729 3757 module.exports = EditAttachments; 3758 3730 3759 },{"../../controllers/edit-attachment-metadata.js":1,"../../controllers/edit-image.js":2,"../attachment-compat.js":10,"../attachment/details-two-column.js":16,"../edit-image-details.js":25,"../frame.js":28,"../media-frame.js":34,"../modal.js":37}],30:[function(require,module,exports){ 3731 3760 /*globals _, Backbone, wp, jQuery */ 3732 3761 … … 3975 4004 }); 3976 4005 3977 4006 module.exports = Manage; 4007 3978 4008 },{"../../controllers/library.js":3,"../../routers/manage.js":8,"../attachments/browser.js":20,"../media-frame.js":34,"../uploader/window.js":50}],31:[function(require,module,exports){ 3979 4009 /** 3980 4010 * wp.media.view.Iframe … … 4001 4031 }); 4002 4032 4003 4033 module.exports = Iframe; 4034 4004 4035 },{"./view.js":51}],32:[function(require,module,exports){ 4005 4036 /** 4006 4037 * @class … … 4027 4058 }); 4028 4059 4029 4060 module.exports = Label; 4061 4030 4062 },{"./view.js":51}],33:[function(require,module,exports){ 4031 4063 /*globals _, wp, jQuery */ 4032 4064 … … 4180 4212 }); 4181 4213 4182 4214 module.exports = MediaDetails; 4215 4183 4216 },{"./settings/attachment-display.js":43}],34:[function(require,module,exports){ 4184 4217 /*globals _, wp, jQuery */ 4185 4218 … … 4435 4468 }); 4436 4469 4437 4470 module.exports = MediaFrame; 4471 4438 4472 },{"./frame.js":28,"./iframe.js":31,"./menu.js":36,"./modal.js":37,"./router.js":40,"./toolbar.js":46,"./uploader/window.js":50,"./view.js":51}],35:[function(require,module,exports){ 4439 4473 /*globals wp, jQuery */ 4440 4474 … … 4509 4543 }); 4510 4544 4511 4545 module.exports = MenuItem; 4546 4512 4547 },{"./view.js":51}],36:[function(require,module,exports){ 4513 4548 /** 4514 4549 * wp.media.view.Menu … … 4625 4660 }); 4626 4661 4627 4662 module.exports = Menu; 4663 4628 4664 },{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){ 4629 4665 /*globals _, wp, jQuery */ 4630 4666 … … 4841 4877 }); 4842 4878 4843 4879 module.exports = Modal; 4880 4844 4881 },{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){ 4845 4882 /*globals _, Backbone */ 4846 4883 … … 4942 4979 }); 4943 4980 4944 4981 module.exports = PriorityList; 4982 4945 4983 },{"./view.js":51}],39:[function(require,module,exports){ 4946 4984 /** 4947 4985 * wp.media.view.RouterItem … … 4968 5006 }); 4969 5007 4970 5008 module.exports = RouterItem; 5009 4971 5010 },{"./menu-item.js":35}],40:[function(require,module,exports){ 4972 5011 /** 4973 5012 * wp.media.view.Router … … 5005 5044 }); 5006 5045 5007 5046 module.exports = Router; 5047 5008 5048 },{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){ 5009 5049 /*globals wp */ 5010 5050 … … 5055 5095 }); 5056 5096 5057 5097 module.exports = Search; 5098 5058 5099 },{"./view.js":51}],42:[function(require,module,exports){ 5059 5100 /*globals _, Backbone, jQuery */ 5060 5101 … … 5177 5218 }); 5178 5219 5179 5220 module.exports = Settings; 5221 5180 5222 },{"./view.js":51}],43:[function(require,module,exports){ 5181 5223 /*globals _, wp */ 5182 5224 … … 5272 5314 }); 5273 5315 5274 5316 module.exports = AttachmentDisplay; 5317 5275 5318 },{"../settings.js":42}],44:[function(require,module,exports){ 5276 5319 /** 5277 5320 * wp.media.view.Sidebar … … 5290 5333 }); 5291 5334 5292 5335 module.exports = Sidebar; 5336 5293 5337 },{"./priority-list.js":38}],45:[function(require,module,exports){ 5294 5338 /*globals _, wp */ 5295 5339 … … 5329 5373 }); 5330 5374 5331 5375 module.exports = Spinner; 5376 5332 5377 },{"./view.js":51}],46:[function(require,module,exports){ 5333 5378 /*globals Backbone, _ */ 5334 5379 … … 5492 5537 }); 5493 5538 5494 5539 module.exports = Toolbar; 5540 5495 5541 },{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){ 5496 5542 /*globals _, wp */ 5497 5543 … … 5625 5671 }); 5626 5672 5627 5673 module.exports = UploaderInline; 5674 5628 5675 },{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){ 5629 5676 /*globals wp */ 5630 5677 … … 5645 5692 }); 5646 5693 5647 5694 module.exports = UploaderStatusError; 5695 5648 5696 },{"../view.js":51}],49:[function(require,module,exports){ 5649 5697 /*globals _, wp */ 5650 5698 … … 5785 5833 }); 5786 5834 5787 5835 module.exports = UploaderStatus; 5836 5788 5837 },{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){ 5789 5838 /*globals _, wp, jQuery */ 5790 5839 … … 5898 5947 }); 5899 5948 5900 5949 module.exports = UploaderWindow; 5950 5901 5951 },{"../view.js":51}],51:[function(require,module,exports){ 5902 5952 /*globals wp */ 5903 5953 … … 5965 6015 }); 5966 6016 5967 6017 module.exports = View; 6018 5968 6019 },{}]},{},[7]); -
src/wp-includes/js/media/grid.manifest.js
1 /* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */2 1 (function (wp) { 3 2 var media = wp.media; 4 3 … … 12 11 media.view.DeleteSelectedButton = require( './views/button/delete-selected.js' ); 13 12 media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' ); 14 13 15 }(wp)); 16 No newline at end of file 14 }(wp)); -
src/wp-includes/js/media/models/attachment.js
1 /*globals jQuery, Backbone, _, wp */2 3 1 /** 4 2 * wp.media.model.Attachment 5 3 * … … 128 126 return $.Deferred().rejectWith( this ).promise(); 129 127 } 130 128 131 return media.post( 'save-attachment-compat', _.defaults({129 return wp.media.post( 'save-attachment-compat', _.defaults({ 132 130 id: this.id, 133 131 nonce: this.get('nonces').update, 134 132 post_id: wp.media.model.settings.post.id … … 165 163 }) 166 164 }); 167 165 168 module.exports = Attachment; 169 No newline at end of file 166 module.exports = Attachment; -
src/wp-includes/js/media/models/attachments.js
1 /*globals jQuery, Backbone, _, wp */2 3 1 /** 4 2 * wp.media.model.Attachments 5 3 * … … 323 321 // checking if we're still mirroring that collection when 324 322 // the request resolves. 325 323 mirroring.more( options ).done( function() { 326 if ( this === attachments.mirroring ) 324 if ( this === attachments.mirroring ) { 327 325 deferred.resolveWith( this ); 326 } 328 327 }); 329 328 330 329 return deferred.promise(); … … 532 531 } 533 532 }); 534 533 535 module.exports = Attachments; 536 No newline at end of file 534 module.exports = Attachments; -
src/wp-includes/js/media/models/post-image.js
1 /*globals jQuery, Backbone */2 3 1 /** 4 2 * wp.media.model.PostImage 5 3 * … … 153 151 } 154 152 }); 155 153 156 module.exports = PostImage; 157 No newline at end of file 154 module.exports = PostImage; -
src/wp-includes/js/media/models/post-media.js
1 /*globals Backbone, _, wp */2 3 1 /** 4 2 * Shared model class for audio and video. Updates the model after 5 3 * "Add Audio|Video Source" and "Replace Audio|Video" states return … … 37 35 } 38 36 }); 39 37 40 module.exports = PostMedia; 41 No newline at end of file 38 module.exports = PostMedia; -
src/wp-includes/js/media/models/query.js
1 /*globals jQuery, _, wp */2 3 1 /** 4 2 * wp.media.model.Query 5 3 * … … 305 303 }()) 306 304 }); 307 305 308 module.exports = Query; 309 No newline at end of file 306 module.exports = Query; -
src/wp-includes/js/media/models/selection.js
1 /*globals _ */2 3 1 /** 4 2 * wp.media.model.Selection 5 3 * … … 94 92 } 95 93 }); 96 94 97 module.exports = Selection; 98 No newline at end of file 95 module.exports = Selection; -
src/wp-includes/js/media/models.js
231 231 }); 232 232 233 233 }(jQuery)); 234 234 235 },{"./models/attachment.js":2,"./models/attachments.js":3,"./models/post-image.js":4,"./models/query.js":5,"./models/selection.js":6}],2:[function(require,module,exports){ 235 236 /*globals jQuery, Backbone, _, wp */ 236 237 … … 400 401 }); 401 402 402 403 module.exports = Attachment; 404 403 405 },{"./attachments.js":3}],3:[function(require,module,exports){ 404 406 /*globals jQuery, Backbone, _, wp */ 405 407 … … 936 938 }); 937 939 938 940 module.exports = Attachments; 941 939 942 },{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){ 940 943 /*globals jQuery, Backbone */ 941 944 … … 1093 1096 }); 1094 1097 1095 1098 module.exports = PostImage; 1099 1096 1100 },{"./attachment":2}],5:[function(require,module,exports){ 1097 1101 /*globals jQuery, _, wp */ 1098 1102 … … 1402 1406 }); 1403 1407 1404 1408 module.exports = Query; 1409 1405 1410 },{"./attachments.js":3}],6:[function(require,module,exports){ 1406 1411 /*globals _ */ 1407 1412 … … 1500 1505 }); 1501 1506 1502 1507 module.exports = Selection; 1508 1503 1509 },{"./attachments.js":3}]},{},[1]); -
src/wp-includes/js/media/models.manifest.js
229 229 window.wp = null; 230 230 }); 231 231 232 }(jQuery)); 233 No newline at end of file 232 }(jQuery)); -
src/wp-includes/js/media/routers/manage.js
1 /*globals jQuery, Backbone */2 3 1 /** 4 2 * A router for handling the browser history and application state. 5 3 * … … 43 41 } 44 42 }); 45 43 46 module.exports = Router; 47 No newline at end of file 44 module.exports = Router; -
src/wp-includes/js/media/utils/selection-sync.js
1 /*globals _ */2 3 1 /** 4 2 * wp.media.selectionSync 5 3 * … … 63 61 } 64 62 }; 65 63 66 module.exports = selectionSync; 67 No newline at end of file 64 module.exports = selectionSync; -
src/wp-includes/js/media/views/attachment/details-two-column.js
1 /*globals wp */2 3 1 /** 4 2 * A similar view to media.view.Attachment.Details 5 3 * for use in the Edit Attachment modal. … … 34 32 wp.media.mixin.removeAllPlayers(); 35 33 this.$( 'audio, video' ).each( function (i, elem) { 36 34 var el = MediaDetails.prepareSrc( elem ); 37 new MediaElementPlayer( el, wp.media.mixin.mejsSettings );35 new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings ); 38 36 } ); 39 37 } 40 38 }); 41 39 42 module.exports = TwoColumn; 43 No newline at end of file 40 module.exports = TwoColumn; -
src/wp-includes/js/media/views/attachment/details.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.Attachment.Details 5 3 * … … 59 57 deleteAttachment: function( event ) { 60 58 event.preventDefault(); 61 59 62 if ( confirm( l10n.warnDelete ) ) {60 if ( window.confirm( l10n.warnDelete ) ) { 63 61 this.model.destroy(); 64 62 // Keep focus inside media modal 65 63 // after image is deleted … … 137 135 } 138 136 }); 139 137 140 module.exports = Details; 141 No newline at end of file 138 module.exports = Details; -
src/wp-includes/js/media/views/attachment/edit-library.js
16 16 } 17 17 }); 18 18 19 module.exports = EditLibrary; 20 No newline at end of file 19 module.exports = EditLibrary; -
src/wp-includes/js/media/views/attachment/edit-selection.js
17 17 } 18 18 }); 19 19 20 module.exports = EditSelection; 21 No newline at end of file 20 module.exports = EditSelection; -
src/wp-includes/js/media/views/attachment/library.js
16 16 } 17 17 }); 18 18 19 module.exports = Library; 20 No newline at end of file 19 module.exports = Library; -
src/wp-includes/js/media/views/attachment/selection.js
20 20 } 21 21 }); 22 22 23 module.exports = Selection; 24 No newline at end of file 23 module.exports = Selection; -
src/wp-includes/js/media/views/attachment-compat.js
1 /*globals _ */2 3 1 /** 4 2 * wp.media.view.AttachmentCompat 5 3 * … … 82 80 } 83 81 }); 84 82 85 module.exports = AttachmentCompat; 86 No newline at end of file 83 module.exports = AttachmentCompat; -
src/wp-includes/js/media/views/attachment-filters/all.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.AttachmentFilters.All 5 3 * … … 88 86 } 89 87 }); 90 88 91 module.exports = All; 92 No newline at end of file 89 module.exports = All; -
src/wp-includes/js/media/views/attachment-filters/date.js
1 /*globals _, wp */2 3 1 /** 4 2 * A filter dropdown for month/dates. 5 3 * … … 39 37 } 40 38 }); 41 39 42 module.exports = DateFilter; 43 No newline at end of file 40 module.exports = DateFilter; -
src/wp-includes/js/media/views/attachment-filters/uploaded.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.AttachmentFilters.Uploaded 5 3 * … … 57 55 } 58 56 }); 59 57 60 module.exports = Uploaded; 61 No newline at end of file 58 module.exports = Uploaded; -
src/wp-includes/js/media/views/attachment-filters.js
1 /*globals _, jQuery */2 3 1 /** 4 2 * wp.media.view.AttachmentFilters 5 3 * … … 75 73 } 76 74 }); 77 75 78 module.exports = AttachmentFilters; 79 No newline at end of file 76 module.exports = AttachmentFilters; -
src/wp-includes/js/media/views/attachment.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.Attachment 5 3 * … … 551 549 }; 552 550 }); 553 551 554 module.exports = Attachment; 555 No newline at end of file 552 module.exports = Attachment; -
src/wp-includes/js/media/views/attachments/browser.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.AttachmentsBrowser 5 3 * … … 190 188 return; 191 189 } 192 190 193 if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {191 if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) { 194 192 return; 195 193 } 196 194 197 195 if ( mediaTrash && 198 196 'trash' !== selection.at( 0 ).get( 'status' ) && 199 ! confirm( l10n.warnBulkTrash ) ) {197 ! window.confirm( l10n.warnBulkTrash ) ) { 200 198 201 199 return; 202 200 } … … 244 242 click: function() { 245 243 var removed = [], selection = this.controller.state().get( 'selection' ); 246 244 247 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {245 if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) { 248 246 return; 249 247 } 250 248 … … 456 454 } 457 455 }); 458 456 459 module.exports = AttachmentsBrowser; 460 No newline at end of file 457 module.exports = AttachmentsBrowser; -
src/wp-includes/js/media/views/attachments/selection.js
1 /*globals _ */2 3 1 /** 4 2 * wp.media.view.Attachments.Selection 5 3 * … … 28 26 } 29 27 }); 30 28 31 module.exports = Selection; 32 No newline at end of file 29 module.exports = Selection; -
src/wp-includes/js/media/views/attachments.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.Attachments 5 3 * … … 272 270 273 271 // The scroll event occurs on the document, but the element 274 272 // that should be checked is the document body. 275 if ( el == document ) {273 if ( el === document ) { 276 274 el = document.body; 277 275 scrollTop = $(document).scrollTop(); 278 276 } … … 297 295 } 298 296 }); 299 297 300 module.exports = Attachments; 301 No newline at end of file 298 module.exports = Attachments; -
src/wp-includes/js/media/views/audio-details.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.AudioDetails 5 3 * … … 35 33 } 36 34 }); 37 35 38 module.exports = AudioDetails; 39 No newline at end of file 36 module.exports = AudioDetails; -
src/wp-includes/js/media/views/button/delete-selected-permanently.js
40 40 } 41 41 }); 42 42 43 module.exports = DeleteSelectedPermanently; 44 No newline at end of file 43 module.exports = DeleteSelectedPermanently; -
src/wp-includes/js/media/views/button/delete-selected.js
1 /*globals wp */2 3 1 /** 4 2 * A button that handles bulk Delete/Trash logic 5 3 * … … 48 46 } 49 47 }); 50 48 51 module.exports = DeleteSelected; 52 No newline at end of file 49 module.exports = DeleteSelected; -
src/wp-includes/js/media/views/button/select-mode-toggle.js
1 /*globals wp */2 3 1 var Button = require( '../button.js' ), 4 2 l10n = wp.media.view.l10n, 5 3 SelectModeToggle; … … 52 50 } 53 51 }); 54 52 55 module.exports = SelectModeToggle; 56 No newline at end of file 53 module.exports = SelectModeToggle; -
src/wp-includes/js/media/views/button-group.js
1 /*globals _, Backbone, jQuery */2 3 1 /** 4 2 * wp.media.view.ButtonGroup 5 3 * … … 45 43 } 46 44 }); 47 45 48 module.exports = ButtonGroup; 49 No newline at end of file 46 module.exports = ButtonGroup; -
src/wp-includes/js/media/views/button.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.view.Button 5 3 * … … 86 84 } 87 85 }); 88 86 89 module.exports = Button; 90 No newline at end of file 87 module.exports = Button; -
src/wp-includes/js/media/views/cropper.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.Cropper 5 3 * … … 60 58 61 59 this.views.add( '.upload-errors', new UploaderStatusError({ 62 60 filename: UploaderStatus.prototype.filename(filename), 63 message: _wpMediaViewsL10n.cropError61 message: window._wpMediaViewsL10n.cropError 64 62 }), { at: 0 }); 65 63 } 66 64 }); 67 65 68 module.exports = Cropper; 69 No newline at end of file 66 module.exports = Cropper; -
src/wp-includes/js/media/views/edit-image-details.js
21 21 } 22 22 }); 23 23 24 module.exports = Details; 25 No newline at end of file 24 module.exports = Details; -
src/wp-includes/js/media/views/edit-image.js
1 /*globals _, wp */2 3 1 var View = require( './view.js' ), 4 2 EditImage; 5 3 … … 50 48 51 49 }); 52 50 53 module.exports = EditImage; 54 No newline at end of file 51 module.exports = EditImage; -
src/wp-includes/js/media/views/embed/image.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.EmbedImage 5 3 * … … 30 28 } 31 29 }); 32 30 33 module.exports = EmbedImage; 34 No newline at end of file 31 module.exports = EmbedImage; -
src/wp-includes/js/media/views/embed/link.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.EmbedLink 5 3 * … … 64 62 } 65 63 }); 66 64 67 module.exports = EmbedLink; 68 No newline at end of file 65 module.exports = EmbedLink; -
src/wp-includes/js/media/views/embed/url.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.EmbedUrl 5 3 * … … 76 74 } 77 75 }); 78 76 79 module.exports = EmbedUrl; 80 No newline at end of file 77 module.exports = EmbedUrl; -
src/wp-includes/js/media/views/embed.js
65 65 } 66 66 }); 67 67 68 module.exports = Embed; 69 No newline at end of file 68 module.exports = Embed; -
src/wp-includes/js/media/views/focus-manager.js
44 44 45 45 }); 46 46 47 module.exports = FocusManager; 48 No newline at end of file 47 module.exports = FocusManager; -
src/wp-includes/js/media/views/frame/audio-details.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.AudioDetails 5 3 * … … 74 72 } 75 73 }); 76 74 77 module.exports = AudioDetails; 78 No newline at end of file 75 module.exports = AudioDetails; -
src/wp-includes/js/media/views/frame/edit-attachments.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * A frame for editing the details of a specific media item. 5 3 * … … 243 241 } 244 242 }); 245 243 246 module.exports = EditAttachments; 247 No newline at end of file 244 module.exports = EditAttachments; -
src/wp-includes/js/media/views/frame/image-details.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.ImageDetails 5 3 * … … 180 178 181 179 }); 182 180 183 module.exports = ImageDetails; 184 No newline at end of file 181 module.exports = ImageDetails; -
src/wp-includes/js/media/views/frame/manage.js
1 /*globals _, Backbone, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.MediaFrame.Manage 5 3 * … … 237 235 // Verify pushState support and activate 238 236 if ( window.history && window.history.pushState ) { 239 237 Backbone.history.start( { 240 root: _wpMediaGridSettings.adminUrl,238 root: window._wpMediaGridSettings.adminUrl, 241 239 pushState: true 242 240 } ); 243 241 } 244 242 } 245 243 }); 246 244 247 module.exports = Manage; 248 No newline at end of file 245 module.exports = Manage; -
src/wp-includes/js/media/views/frame/media-details.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.MediaDetails 5 3 * … … 129 127 } 130 128 }); 131 129 132 module.exports = MediaDetails; 133 No newline at end of file 130 module.exports = MediaDetails; -
src/wp-includes/js/media/views/frame/post.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.Post 5 3 * … … 748 746 } 749 747 }); 750 748 751 module.exports = Post; 752 No newline at end of file 749 module.exports = Post; -
src/wp-includes/js/media/views/frame/select.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.Select 5 3 * … … 171 169 } 172 170 }); 173 171 174 module.exports = Select; 175 No newline at end of file 172 module.exports = Select; -
src/wp-includes/js/media/views/frame/video-details.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.MediaFrame.VideoDetails 5 3 * … … 134 132 } 135 133 }); 136 134 137 module.exports = VideoDetails; 138 No newline at end of file 135 module.exports = VideoDetails; -
src/wp-includes/js/media/views/frame.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.view.Frame 5 3 * … … 169 167 // Make the `Frame` a `StateMachine`. 170 168 _.extend( Frame.prototype, StateMachine.prototype ); 171 169 172 module.exports = Frame; 173 No newline at end of file 170 module.exports = Frame; -
src/wp-includes/js/media/views/iframe.js
22 22 } 23 23 }); 24 24 25 module.exports = Iframe; 26 No newline at end of file 25 module.exports = Iframe; -
src/wp-includes/js/media/views/image-details.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.ImageDetails 5 3 * … … 73 71 postRender: function() { 74 72 setTimeout( _.bind( this.resetFocus, this ), 10 ); 75 73 this.toggleLinkSettings(); 76 if ( getUserSetting( 'advImgDetails' ) === 'show' ) {74 if ( window.getUserSetting( 'advImgDetails' ) === 'show' ) { 77 75 this.toggleAdvanced( true ); 78 76 } 79 77 this.trigger( 'post-render' ); … … 146 144 mode = 'show'; 147 145 } 148 146 149 setUserSetting( 'advImgDetails', mode );147 window.setUserSetting( 'advImgDetails', mode ); 150 148 }, 151 149 152 150 editAttachment: function( event ) { … … 165 163 } 166 164 }); 167 165 168 module.exports = AttachmentDisplay; 169 No newline at end of file 166 module.exports = AttachmentDisplay; -
src/wp-includes/js/media/views/label.js
22 22 } 23 23 }); 24 24 25 module.exports = Label; 26 No newline at end of file 25 module.exports = Label; -
src/wp-includes/js/media/views/media-details.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.MediaDetails 5 3 * … … 83 81 */ 84 82 setPlayer : function() { 85 83 if ( ! this.players.length && this.media ) { 86 this.players.push( new MediaElementPlayer( this.media, this.settings ) );84 this.players.push( new window.MediaElementPlayer( this.media, this.settings ) ); 87 85 } 88 86 }, 89 87 … … 111 109 */ 112 110 render: function() { 113 111 AttachmentDisplay.prototype.render.apply( this, arguments ); 114 112 115 113 setTimeout( _.bind( function() { 116 114 this.resetFocus(); 117 115 }, this ), 10 ); … … 149 147 } 150 148 }); 151 149 152 module.exports = MediaDetails; 153 No newline at end of file 150 module.exports = MediaDetails; -
src/wp-includes/js/media/views/media-frame.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.MediaFrame 5 3 * … … 251 249 }; 252 250 }); 253 251 254 module.exports = MediaFrame; 255 No newline at end of file 252 module.exports = MediaFrame; -
src/wp-includes/js/media/views/menu-item.js
1 /*globals wp, jQuery */2 3 1 /** 4 2 * wp.media.view.MenuItem 5 3 * … … 70 68 } 71 69 }); 72 70 73 module.exports = MenuItem; 74 No newline at end of file 71 module.exports = MenuItem; -
src/wp-includes/js/media/views/menu.js
112 112 } 113 113 }); 114 114 115 module.exports = Menu; 116 No newline at end of file 115 module.exports = Menu; -
src/wp-includes/js/media/views/modal.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.Modal 5 3 * … … 212 210 } 213 211 }); 214 212 215 module.exports = Modal; 216 No newline at end of file 213 module.exports = Modal; -
src/wp-includes/js/media/views/priority-list.js
1 /*globals _, Backbone */2 3 1 /** 4 2 * wp.media.view.PriorityList 5 3 * … … 97 95 } 98 96 }); 99 97 100 module.exports = PriorityList; 101 No newline at end of file 98 module.exports = PriorityList; -
src/wp-includes/js/media/views/router-item.js
22 22 } 23 23 }); 24 24 25 module.exports = RouterItem; 26 No newline at end of file 25 module.exports = RouterItem; -
src/wp-includes/js/media/views/router.js
33 33 } 34 34 }); 35 35 36 module.exports = Router; 37 No newline at end of file 36 module.exports = Router; -
src/wp-includes/js/media/views/search.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.Search 5 3 * … … 46 44 } 47 45 }); 48 46 49 module.exports = Search; 50 No newline at end of file 47 module.exports = Search; -
src/wp-includes/js/media/views/selection.js
1 /*globals _, Backbone, wp */2 3 1 /** 4 2 * wp.media.view.Selection 5 3 * … … 82 80 } 83 81 }); 84 82 85 module.exports = Selection; 86 No newline at end of file 83 module.exports = Selection; -
src/wp-includes/js/media/views/settings/attachment-display.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.Settings.AttachmentDisplay 5 3 * … … 91 89 } 92 90 }); 93 91 94 module.exports = AttachmentDisplay; 95 No newline at end of file 92 module.exports = AttachmentDisplay; -
src/wp-includes/js/media/views/settings/gallery.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.Settings.Gallery 5 3 * … … 17 15 template: wp.template('gallery-settings') 18 16 }); 19 17 20 module.exports = Gallery; 21 No newline at end of file 18 module.exports = Gallery; -
src/wp-includes/js/media/views/settings/playlist.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.Settings.Playlist 5 3 * … … 17 15 template: wp.template('playlist-settings') 18 16 }); 19 17 20 module.exports = Playlist; 21 No newline at end of file 18 module.exports = Playlist; -
src/wp-includes/js/media/views/settings.js
1 /*globals _, Backbone, jQuery */2 3 1 /** 4 2 * wp.media.view.Settings 5 3 * … … 107 105 // If the setting has a corresponding user setting, 108 106 // update that as well. 109 107 if ( userSetting = $setting.data('userSetting') ) { 110 setUserSetting( userSetting, value );108 window.setUserSetting( userSetting, value ); 111 109 } 112 110 }, 113 111 … … 118 116 } 119 117 }); 120 118 121 module.exports = Settings; 122 No newline at end of file 119 module.exports = Settings; -
src/wp-includes/js/media/views/sidebar.js
14 14 className: 'media-sidebar' 15 15 }); 16 16 17 module.exports = Sidebar; 18 No newline at end of file 17 module.exports = Sidebar; -
src/wp-includes/js/media/views/spinner.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.Spinner 5 3 * … … 35 33 } 36 34 }); 37 35 38 module.exports = Spinner; 39 No newline at end of file 36 module.exports = Spinner; -
src/wp-includes/js/media/views/toolbar/embed.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.Toolbar.Embed 5 3 * … … 34 32 } 35 33 }); 36 34 37 module.exports = Embed; 38 No newline at end of file 35 module.exports = Embed; -
src/wp-includes/js/media/views/toolbar/select.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.Toolbar.Select 5 3 * … … 67 65 } 68 66 }); 69 67 70 module.exports = Select; 71 No newline at end of file 68 module.exports = Select; -
src/wp-includes/js/media/views/toolbar.js
1 /*globals Backbone, _ */2 3 1 /** 4 2 * wp.media.view.Toolbar 5 3 * … … 159 157 } 160 158 }); 161 159 162 module.exports = Toolbar; 163 No newline at end of file 160 module.exports = Toolbar; -
src/wp-includes/js/media/views/uploader/editor.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap 5 3 * or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow. … … 216 214 } 217 215 }); 218 216 219 module.exports = EditorUploader; 220 No newline at end of file 217 module.exports = EditorUploader; -
src/wp-includes/js/media/views/uploader/inline.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.UploaderInline 5 3 * … … 129 127 130 128 }); 131 129 132 module.exports = UploaderInline; 133 No newline at end of file 130 module.exports = UploaderInline; -
src/wp-includes/js/media/views/uploader/status-error.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.UploaderStatusError 5 3 * … … 16 14 template: wp.template('uploader-status-error') 17 15 }); 18 16 19 module.exports = UploaderStatusError; 20 No newline at end of file 17 module.exports = UploaderStatusError; -
src/wp-includes/js/media/views/uploader/status.js
1 /*globals _, wp */2 3 1 /** 4 2 * wp.media.view.UploaderStatus 5 3 * … … 136 134 } 137 135 }); 138 136 139 module.exports = UploaderStatus; 140 No newline at end of file 137 module.exports = UploaderStatus; -
src/wp-includes/js/media/views/uploader/window.js
1 /*globals _, wp, jQuery */2 3 1 /** 4 2 * wp.media.view.UploaderWindow 5 3 * … … 109 107 } 110 108 }); 111 109 112 module.exports = UploaderWindow; 113 No newline at end of file 110 module.exports = UploaderWindow; -
src/wp-includes/js/media/views/video-details.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.view.VideoDetails 5 3 * … … 40 38 } 41 39 }); 42 40 43 module.exports = VideoDetails; 44 No newline at end of file 41 module.exports = VideoDetails; -
src/wp-includes/js/media/views/view.js
1 /*globals wp */2 3 1 /** 4 2 * wp.media.View 5 3 * … … 63 61 } 64 62 }); 65 63 66 module.exports = View; 67 No newline at end of file 64 module.exports = View; -
src/wp-includes/js/media/views.js
100 100 }); 101 101 102 102 module.exports = CollectionAdd; 103 103 104 },{"./library.js":10}],2:[function(require,module,exports){ 104 105 /*globals wp, jQuery, Backbone */ 105 106 … … 263 264 }); 264 265 265 266 module.exports = CollectionEdit; 267 266 268 },{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){ 267 269 /*globals _, wp, Backbone */ 268 270 … … 341 343 342 344 this.$el.text(l10n.cropping); 343 345 this.$el.attr('disabled', true); 344 346 345 347 controller.state().doCrop( selection ).done( function( croppedImage ) { 346 348 controller.trigger('cropped', croppedImage ); 347 349 controller.close(); … … 383 385 }); 384 386 385 387 module.exports = Cropper; 388 386 389 },{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){ 387 390 /*globals _, wp */ 388 391 … … 462 465 }); 463 466 464 467 module.exports = EditImage; 468 465 469 },{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){ 466 470 /*globals _, wp, jQuery, Backbone */ 467 471 … … 600 604 }); 601 605 602 606 module.exports = Embed; 607 603 608 },{"./state.js":15}],6:[function(require,module,exports){ 604 609 /*globals _, wp */ 605 610 … … 723 728 }); 724 729 725 730 module.exports = FeaturedImage; 731 726 732 },{"./library.js":10}],7:[function(require,module,exports){ 727 733 /*globals _, wp */ 728 734 … … 811 817 }); 812 818 813 819 module.exports = GalleryAdd; 820 814 821 },{"./library.js":10}],8:[function(require,module,exports){ 815 822 /*globals wp, Backbone */ 816 823 … … 951 958 }); 952 959 953 960 module.exports = GalleryEdit; 961 954 962 },{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){ 955 963 /*globals _, wp */ 956 964 … … 1014 1022 }); 1015 1023 1016 1024 module.exports = ImageDetails; 1025 1017 1026 },{"./library.js":10,"./state.js":15}],10:[function(require,module,exports){ 1018 1027 /*globals _, wp, Backbone, getUserSetting, setUserSetting */ 1019 1028 … … 1287 1296 _.extend( Library.prototype, selectionSync ); 1288 1297 1289 1298 module.exports = Library; 1299 1290 1300 },{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){ 1291 1301 /*globals _, wp */ 1292 1302 … … 1338 1348 }); 1339 1349 1340 1350 module.exports = MediaLibrary; 1351 1341 1352 },{"./library.js":10}],12:[function(require,module,exports){ 1342 1353 /*globals _, Backbone */ 1343 1354 … … 1518 1529 }); 1519 1530 1520 1531 module.exports = Region; 1532 1521 1533 },{}],13:[function(require,module,exports){ 1522 1534 /*globals _, wp */ 1523 1535 … … 1627 1639 }); 1628 1640 1629 1641 module.exports = ReplaceImage; 1642 1630 1643 },{"./library.js":10}],14:[function(require,module,exports){ 1631 1644 /*globals _, Backbone */ 1632 1645 … … 1752 1765 }); 1753 1766 1754 1767 module.exports = StateMachine; 1768 1755 1769 },{}],15:[function(require,module,exports){ 1756 1770 /*globals _, Backbone */ 1757 1771 … … 1994 2008 }); 1995 2009 1996 2010 module.exports = State; 2011 1997 2012 },{}],16:[function(require,module,exports){ 1998 2013 /*globals _ */ 1999 2014 … … 2061 2076 }; 2062 2077 2063 2078 module.exports = selectionSync; 2079 2064 2080 },{}],17:[function(require,module,exports){ 2065 2081 /* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */ 2066 2082 ( function( $, _ ) { … … 2210 2226 media.view.Spinner = require( './views/spinner.js' ); 2211 2227 2212 2228 }(jQuery, _)); 2229 2213 2230 },{"./controllers/collection-add.js":1,"./controllers/collection-edit.js":2,"./controllers/cropper.js":3,"./controllers/edit-image.js":4,"./controllers/embed.js":5,"./controllers/featured-image.js":6,"./controllers/gallery-add.js":7,"./controllers/gallery-edit.js":8,"./controllers/image-details.js":9,"./controllers/library.js":10,"./controllers/media-library.js":11,"./controllers/region.js":12,"./controllers/replace-image.js":13,"./controllers/state-machine.js":14,"./controllers/state.js":15,"./utils/selection-sync.js":16,"./views/attachment-compat.js":18,"./views/attachment-filters.js":19,"./views/attachment-filters/all.js":20,"./views/attachment-filters/date.js":21,"./views/attachment-filters/uploaded.js":22,"./views/attachment.js":23,"./views/attachment/details.js":24,"./views/attachment/edit-library.js":25,"./views/attachment/edit-selection.js":26,"./views/attachment/library.js":27,"./views/attachment/selection.js":28,"./views/attachments.js":29,"./views/attachments/browser.js":30,"./views/attachments/selection.js":31,"./views/button-group.js":32,"./views/button.js":33,"./views/cropper.js":34,"./views/edit-image.js":35,"./views/embed.js":36,"./views/embed/image.js":37,"./views/embed/link.js":38,"./views/embed/url.js":39,"./views/focus-manager.js":40,"./views/frame/image-details.js":42,"./views/frame/post.js":43,"./views/frame/select.js":44,"./views/iframe.js":45,"./views/image-details.js":46,"./views/label.js":47,"./views/media-frame.js":48,"./views/menu-item.js":49,"./views/menu.js":50,"./views/modal.js":51,"./views/priority-list.js":52,"./views/router-item.js":53,"./views/router.js":54,"./views/search.js":55,"./views/selection.js":56,"./views/settings.js":57,"./views/settings/attachment-display.js":58,"./views/settings/gallery.js":59,"./views/settings/playlist.js":60,"./views/sidebar.js":61,"./views/spinner.js":62,"./views/toolbar.js":63,"./views/toolbar/embed.js":64,"./views/toolbar/select.js":65,"./views/uploader/editor.js":66,"./views/uploader/inline.js":67,"./views/uploader/status-error.js":68,"./views/uploader/status.js":69,"./views/uploader/window.js":70,"./views/view.js":71}],18:[function(require,module,exports){ 2214 2231 /*globals _ */ 2215 2232 … … 2296 2313 }); 2297 2314 2298 2315 module.exports = AttachmentCompat; 2316 2299 2317 },{"./view.js":71}],19:[function(require,module,exports){ 2300 2318 /*globals _, jQuery */ 2301 2319 … … 2375 2393 }); 2376 2394 2377 2395 module.exports = AttachmentFilters; 2396 2378 2397 },{"./view.js":71}],20:[function(require,module,exports){ 2379 2398 /*globals _, wp */ 2380 2399 … … 2467 2486 }); 2468 2487 2469 2488 module.exports = All; 2489 2470 2490 },{"../attachment-filters.js":19}],21:[function(require,module,exports){ 2471 2491 /*globals _, wp */ 2472 2492 … … 2510 2530 }); 2511 2531 2512 2532 module.exports = DateFilter; 2533 2513 2534 },{"../attachment-filters.js":19}],22:[function(require,module,exports){ 2514 2535 /*globals wp */ 2515 2536 … … 2571 2592 }); 2572 2593 2573 2594 module.exports = Uploaded; 2595 2574 2596 },{"../attachment-filters.js":19}],23:[function(require,module,exports){ 2575 2597 /*globals _, wp, jQuery */ 2576 2598 … … 3126 3148 }); 3127 3149 3128 3150 module.exports = Attachment; 3151 3129 3152 },{"./view.js":71}],24:[function(require,module,exports){ 3130 3153 /*globals _, wp */ 3131 3154 … … 3267 3290 }); 3268 3291 3269 3292 module.exports = Details; 3293 3270 3294 },{"../attachment.js":23}],25:[function(require,module,exports){ 3271 3295 /** 3272 3296 * wp.media.view.Attachment.EditLibrary … … 3287 3311 }); 3288 3312 3289 3313 module.exports = EditLibrary; 3314 3290 3315 },{"../attachment.js":23}],26:[function(require,module,exports){ 3291 3316 /** 3292 3317 * wp.media.view.Attachments.EditSelection … … 3308 3333 }); 3309 3334 3310 3335 module.exports = EditSelection; 3336 3311 3337 },{"./selection.js":28}],27:[function(require,module,exports){ 3312 3338 /** 3313 3339 * wp.media.view.Attachment.Library … … 3328 3354 }); 3329 3355 3330 3356 module.exports = Library; 3357 3331 3358 },{"../attachment.js":23}],28:[function(require,module,exports){ 3332 3359 /** 3333 3360 * wp.media.view.Attachment.Selection … … 3352 3379 }); 3353 3380 3354 3381 module.exports = Selection; 3382 3355 3383 },{"../attachment.js":23}],29:[function(require,module,exports){ 3356 3384 /*globals _, wp, jQuery */ 3357 3385 … … 3653 3681 }); 3654 3682 3655 3683 module.exports = Attachments; 3684 3656 3685 },{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){ 3657 3686 /*globals _, wp, jQuery */ 3658 3687 … … 4113 4142 }); 4114 4143 4115 4144 module.exports = AttachmentsBrowser; 4145 4116 4146 },{"../attachment-compat.js":18,"../attachment-filters/all.js":20,"../attachment-filters/date.js":21,"../attachment-filters/uploaded.js":22,"../attachment/details.js":24,"../attachment/library.js":27,"../attachments.js":29,"../label.js":47,"../search.js":55,"../settings/attachment-display.js":58,"../sidebar.js":61,"../spinner.js":62,"../toolbar.js":63,"../uploader/inline.js":67,"../uploader/status.js":69,"../view.js":71}],31:[function(require,module,exports){ 4117 4147 /*globals _ */ 4118 4148 … … 4145 4175 }); 4146 4176 4147 4177 module.exports = Selection; 4178 4148 4179 },{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){ 4149 4180 /*globals _, Backbone, jQuery */ 4150 4181 … … 4194 4225 }); 4195 4226 4196 4227 module.exports = ButtonGroup; 4228 4197 4229 },{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){ 4198 4230 /*globals _, Backbone */ 4199 4231 … … 4284 4316 }); 4285 4317 4286 4318 module.exports = Button; 4319 4287 4320 },{"./view.js":71}],34:[function(require,module,exports){ 4288 4321 /*globals _, wp, jQuery */ 4289 4322 … … 4353 4386 }); 4354 4387 4355 4388 module.exports = Cropper; 4389 4356 4390 },{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){ 4357 4391 /*globals _, wp */ 4358 4392 … … 4407 4441 }); 4408 4442 4409 4443 module.exports = EditImage; 4444 4410 4445 },{"./view.js":71}],36:[function(require,module,exports){ 4411 4446 /** 4412 4447 * wp.media.view.Embed … … 4476 4511 }); 4477 4512 4478 4513 module.exports = Embed; 4514 4479 4515 },{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){ 4480 4516 /*globals wp */ 4481 4517 … … 4510 4546 }); 4511 4547 4512 4548 module.exports = EmbedImage; 4549 4513 4550 },{"../settings/attachment-display.js":58}],38:[function(require,module,exports){ 4514 4551 /*globals _, wp, jQuery */ 4515 4552 … … 4578 4615 }); 4579 4616 4580 4617 module.exports = EmbedLink; 4618 4581 4619 },{"../settings.js":57}],39:[function(require,module,exports){ 4582 4620 /*globals _, wp, jQuery */ 4583 4621 … … 4658 4696 }); 4659 4697 4660 4698 module.exports = EmbedUrl; 4699 4661 4700 },{"../view.js":71}],40:[function(require,module,exports){ 4662 4701 /** 4663 4702 * wp.media.view.FocusManager … … 4706 4745 }); 4707 4746 4708 4747 module.exports = FocusManager; 4748 4709 4749 },{"./view.js":71}],41:[function(require,module,exports){ 4710 4750 /*globals _, Backbone */ 4711 4751 … … 4879 4919 _.extend( Frame.prototype, StateMachine.prototype ); 4880 4920 4881 4921 module.exports = Frame; 4922 4882 4923 },{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){ 4883 4924 /*globals wp */ 4884 4925 … … 5063 5104 }); 5064 5105 5065 5106 module.exports = ImageDetails; 5107 5066 5108 },{"../../controllers/edit-image.js":4,"../../controllers/image-details.js":9,"../../controllers/replace-image.js":13,"../edit-image.js":35,"../image-details.js":46,"../toolbar.js":63,"./select.js":44}],43:[function(require,module,exports){ 5067 5109 /*globals _, wp */ 5068 5110 … … 5815 5857 }); 5816 5858 5817 5859 module.exports = Post; 5860 5818 5861 },{"../../controllers/collection-add.js":1,"../../controllers/collection-edit.js":2,"../../controllers/edit-image.js":4,"../../controllers/embed.js":5,"../../controllers/featured-image.js":6,"../../controllers/gallery-add.js":7,"../../controllers/gallery-edit.js":8,"../../controllers/library.js":10,"../attachment/edit-selection.js":26,"../attachments/browser.js":30,"../edit-image.js":35,"../embed.js":36,"../selection.js":56,"../settings/playlist.js":60,"../toolbar.js":63,"../toolbar/embed.js":64,"../view.js":71,"./select.js":44}],44:[function(require,module,exports){ 5819 5862 /*globals _, wp */ 5820 5863 … … 5990 6033 }); 5991 6034 5992 6035 module.exports = Select; 6036 5993 6037 },{"../../controllers/library.js":10,"../attachments/browser.js":30,"../media-frame.js":48,"../toolbar/select.js":65,"../uploader/inline.js":67}],45:[function(require,module,exports){ 5994 6038 /** 5995 6039 * wp.media.view.Iframe … … 6016 6060 }); 6017 6061 6018 6062 module.exports = Iframe; 6063 6019 6064 },{"./view.js":71}],46:[function(require,module,exports){ 6020 6065 /*globals _, wp, jQuery */ 6021 6066 … … 6185 6230 }); 6186 6231 6187 6232 module.exports = AttachmentDisplay; 6233 6188 6234 },{"./settings/attachment-display.js":58}],47:[function(require,module,exports){ 6189 6235 /** 6190 6236 * @class … … 6211 6257 }); 6212 6258 6213 6259 module.exports = Label; 6260 6214 6261 },{"./view.js":71}],48:[function(require,module,exports){ 6215 6262 /*globals _, wp, jQuery */ 6216 6263 … … 6466 6513 }); 6467 6514 6468 6515 module.exports = MediaFrame; 6516 6469 6517 },{"./frame.js":41,"./iframe.js":45,"./menu.js":50,"./modal.js":51,"./router.js":54,"./toolbar.js":63,"./uploader/window.js":70,"./view.js":71}],49:[function(require,module,exports){ 6470 6518 /*globals wp, jQuery */ 6471 6519 … … 6540 6588 }); 6541 6589 6542 6590 module.exports = MenuItem; 6591 6543 6592 },{"./view.js":71}],50:[function(require,module,exports){ 6544 6593 /** 6545 6594 * wp.media.view.Menu … … 6656 6705 }); 6657 6706 6658 6707 module.exports = Menu; 6708 6659 6709 },{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){ 6660 6710 /*globals _, wp, jQuery */ 6661 6711 … … 6872 6922 }); 6873 6923 6874 6924 module.exports = Modal; 6925 6875 6926 },{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){ 6876 6927 /*globals _, Backbone */ 6877 6928 … … 6973 7024 }); 6974 7025 6975 7026 module.exports = PriorityList; 7027 6976 7028 },{"./view.js":71}],53:[function(require,module,exports){ 6977 7029 /** 6978 7030 * wp.media.view.RouterItem … … 6999 7051 }); 7000 7052 7001 7053 module.exports = RouterItem; 7054 7002 7055 },{"./menu-item.js":49}],54:[function(require,module,exports){ 7003 7056 /** 7004 7057 * wp.media.view.Router … … 7036 7089 }); 7037 7090 7038 7091 module.exports = Router; 7092 7039 7093 },{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){ 7040 7094 /*globals wp */ 7041 7095 … … 7086 7140 }); 7087 7141 7088 7142 module.exports = Search; 7143 7089 7144 },{"./view.js":71}],56:[function(require,module,exports){ 7090 7145 /*globals _, Backbone, wp */ 7091 7146 … … 7172 7227 }); 7173 7228 7174 7229 module.exports = Selection; 7230 7175 7231 },{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){ 7176 7232 /*globals _, Backbone, jQuery */ 7177 7233 … … 7294 7350 }); 7295 7351 7296 7352 module.exports = Settings; 7353 7297 7354 },{"./view.js":71}],58:[function(require,module,exports){ 7298 7355 /*globals _, wp */ 7299 7356 … … 7389 7446 }); 7390 7447 7391 7448 module.exports = AttachmentDisplay; 7449 7392 7450 },{"../settings.js":57}],59:[function(require,module,exports){ 7393 7451 /*globals wp */ 7394 7452 … … 7410 7468 }); 7411 7469 7412 7470 module.exports = Gallery; 7471 7413 7472 },{"../settings.js":57}],60:[function(require,module,exports){ 7414 7473 /*globals wp */ 7415 7474 … … 7431 7490 }); 7432 7491 7433 7492 module.exports = Playlist; 7493 7434 7494 },{"../settings.js":57}],61:[function(require,module,exports){ 7435 7495 /** 7436 7496 * wp.media.view.Sidebar … … 7449 7509 }); 7450 7510 7451 7511 module.exports = Sidebar; 7512 7452 7513 },{"./priority-list.js":52}],62:[function(require,module,exports){ 7453 7514 /*globals _, wp */ 7454 7515 … … 7488 7549 }); 7489 7550 7490 7551 module.exports = Spinner; 7552 7491 7553 },{"./view.js":71}],63:[function(require,module,exports){ 7492 7554 /*globals Backbone, _ */ 7493 7555 … … 7651 7713 }); 7652 7714 7653 7715 module.exports = Toolbar; 7716 7654 7717 },{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){ 7655 7718 /*globals _, wp */ 7656 7719 … … 7689 7752 }); 7690 7753 7691 7754 module.exports = Embed; 7755 7692 7756 },{"./select.js":65}],65:[function(require,module,exports){ 7693 7757 /*globals _, wp */ 7694 7758 … … 7760 7824 }); 7761 7825 7762 7826 module.exports = Select; 7827 7763 7828 },{"../toolbar.js":63}],66:[function(require,module,exports){ 7764 7829 /*globals _, wp, jQuery */ 7765 7830 … … 7980 8045 }); 7981 8046 7982 8047 module.exports = EditorUploader; 8048 7983 8049 },{"../view.js":71}],67:[function(require,module,exports){ 7984 8050 /*globals _, wp */ 7985 8051 … … 8113 8179 }); 8114 8180 8115 8181 module.exports = UploaderInline; 8182 8116 8183 },{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){ 8117 8184 /*globals wp */ 8118 8185 … … 8133 8200 }); 8134 8201 8135 8202 module.exports = UploaderStatusError; 8203 8136 8204 },{"../view.js":71}],69:[function(require,module,exports){ 8137 8205 /*globals _, wp */ 8138 8206 … … 8273 8341 }); 8274 8342 8275 8343 module.exports = UploaderStatus; 8344 8276 8345 },{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){ 8277 8346 /*globals _, wp, jQuery */ 8278 8347 … … 8386 8455 }); 8387 8456 8388 8457 module.exports = UploaderWindow; 8458 8389 8459 },{"../view.js":71}],71:[function(require,module,exports){ 8390 8460 /*globals wp */ 8391 8461 … … 8453 8523 }); 8454 8524 8455 8525 module.exports = View; 8526 8456 8527 },{}]},{},[17]); -
src/wp-includes/js/media/views.manifest.js
1 /* global _wpMediaViewsL10n , confirm, getUserSetting, setUserSetting*/1 /* global _wpMediaViewsL10n */ 2 2 ( function( $, _ ) { 3 3 var l10n, 4 4 media = wp.media;