Ticket #28510: 28510.3.patch
File 28510.3.patch, 115.6 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
1 1 (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 2 /* global wp, _wpMediaViewsL10n, _wpmejsSettings, MediaElementPlayer*/2 /* global _wpMediaViewsL10n, _wpmejsSettings */ 3 3 4 4 (function(_) { 5 5 var media = wp.media, … … 133 133 var content; 134 134 135 135 _.each( this.defaults, function( value, key ) { 136 model[ key ] = self.coerce( model, key );136 model[ key ] = this.coerce( model, key ); 137 137 138 138 if ( value === model[ key ] ) { 139 139 delete model[ key ]; … … 223 223 media.view.VideoDetails = require( './views/video-details.js' ); 224 224 225 225 }(_)); 226 },{"./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 /*globals wp */228 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){ 229 228 /** 230 229 * The controller for the Audio Details state 231 230 * … … 255 254 }); 256 255 257 256 module.exports = AudioDetails; 257 258 258 },{"./state.js":7}],3:[function(require,module,exports){ 259 /* globals _, wp, Backbone,getUserSetting, setUserSetting */259 /* globals getUserSetting, setUserSetting */ 260 260 261 261 /** 262 262 * wp.media.controller.Library … … 329 329 this.set( 'library', wp.media.query() ); 330 330 } 331 331 332 if ( ! ( selection instanceof Selection) ) {332 if ( ! ( selection instanceof wp.media.model.Selection ) ) { 333 333 props = selection; 334 334 335 335 if ( ! props ) { … … 528 528 _.extend( Library.prototype, selectionSync ); 529 529 530 530 module.exports = Library; 531 },{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){532 /*globals _, wp */533 531 532 },{"../utils/selection-sync.js":10,"./state.js":7}],4:[function(require,module,exports){ 534 533 /** 535 534 * wp.media.controller.MediaLibrary 536 535 * … … 579 578 }); 580 579 581 580 module.exports = MediaLibrary; 582 },{"./library.js":3}],5:[function(require,module,exports){583 /*globals _, Backbone */584 581 582 },{"./library.js":3}],5:[function(require,module,exports){ 585 583 /** 586 584 * wp.media.controller.Region 587 585 * … … 759 757 }); 760 758 761 759 module.exports = Region; 762 },{}],6:[function(require,module,exports){763 /*globals _, Backbone */764 760 761 },{}],6:[function(require,module,exports){ 765 762 /** 766 763 * wp.media.controller.StateMachine 767 764 * … … 884 881 }); 885 882 886 883 module.exports = StateMachine; 887 },{}],7:[function(require,module,exports){888 /*globals _, Backbone */889 884 885 },{}],7:[function(require,module,exports){ 890 886 /** 891 887 * wp.media.controller.State 892 888 * … … 1126 1122 }); 1127 1123 1128 1124 module.exports = State; 1129 },{}],8:[function(require,module,exports){1130 /*globals wp */1131 1125 1126 },{}],8:[function(require,module,exports){ 1132 1127 /** 1133 1128 * The controller for the Video Details state 1134 1129 * … … 1158 1153 }); 1159 1154 1160 1155 module.exports = VideoDetails; 1161 },{"./state.js":7}],9:[function(require,module,exports){1162 /*globals Backbone, _, wp */1163 1156 1157 },{"./state.js":7}],9:[function(require,module,exports){ 1164 1158 /** 1165 1159 * Shared model class for audio and video. Updates the model after 1166 1160 * "Add Audio|Video Source" and "Replace Audio|Video" states return … … 1199 1193 }); 1200 1194 1201 1195 module.exports = PostMedia; 1202 },{}],10:[function(require,module,exports){1203 /*globals _ */1204 1196 1197 },{}],10:[function(require,module,exports){ 1205 1198 /** 1206 1199 * wp.media.selectionSync 1207 1200 * … … 1266 1259 }; 1267 1260 1268 1261 module.exports = selectionSync; 1269 },{}],11:[function(require,module,exports){1270 /*globals _ */1271 1262 1263 },{}],11:[function(require,module,exports){ 1272 1264 /** 1273 1265 * wp.media.view.AttachmentCompat 1274 1266 * … … 1352 1344 }); 1353 1345 1354 1346 module.exports = AttachmentCompat; 1355 },{"./view.js":51}],12:[function(require,module,exports){1356 /*globals _, jQuery */1357 1347 1348 },{"./view.js":51}],12:[function(require,module,exports){ 1358 1349 /** 1359 1350 * wp.media.view.AttachmentFilters 1360 1351 * … … 1431 1422 }); 1432 1423 1433 1424 module.exports = AttachmentFilters; 1434 },{"./view.js":51}],13:[function(require,module,exports){1435 /*globals _, wp */1436 1425 1426 },{"./view.js":51}],13:[function(require,module,exports){ 1437 1427 /** 1438 1428 * wp.media.view.AttachmentFilters.All 1439 1429 * … … 1523 1513 }); 1524 1514 1525 1515 module.exports = All; 1526 },{"../attachment-filters.js":12}],14:[function(require,module,exports){1527 /*globals _, wp */1528 1516 1517 },{"../attachment-filters.js":12}],14:[function(require,module,exports){ 1529 1518 /** 1530 1519 * A filter dropdown for month/dates. 1531 1520 * … … 1566 1555 }); 1567 1556 1568 1557 module.exports = DateFilter; 1569 },{"../attachment-filters.js":12}],15:[function(require,module,exports){1570 /*globals wp */1571 1558 1559 },{"../attachment-filters.js":12}],15:[function(require,module,exports){ 1572 1560 /** 1573 1561 * wp.media.view.AttachmentFilters.Uploaded 1574 1562 * … … 1627 1615 }); 1628 1616 1629 1617 module.exports = Uploaded; 1630 },{"../attachment-filters.js":12}],16:[function(require,module,exports){1631 /*globals _, wp, jQuery */1632 1618 1619 },{"../attachment-filters.js":12}],16:[function(require,module,exports){ 1633 1620 /** 1634 1621 * wp.media.view.Attachment 1635 1622 * … … 2182 2169 }); 2183 2170 2184 2171 module.exports = Attachment; 2185 },{"./view.js":51}],17:[function(require,module,exports){2186 /*globals _, wp */2187 2172 2173 },{"./view.js":51}],17:[function(require,module,exports){ 2188 2174 /** 2189 2175 * wp.media.view.Attachment.Details 2190 2176 * … … 2244 2230 deleteAttachment: function( event ) { 2245 2231 event.preventDefault(); 2246 2232 2247 if ( confirm( l10n.warnDelete ) ) {2233 if ( window.confirm( l10n.warnDelete ) ) { 2248 2234 this.model.destroy(); 2249 2235 // Keep focus inside media modal 2250 2236 // after image is deleted … … 2323 2309 }); 2324 2310 2325 2311 module.exports = Details; 2312 2326 2313 },{"../attachment.js":16}],18:[function(require,module,exports){ 2327 2314 /** 2328 2315 * wp.media.view.Attachment.Library … … 2343 2330 }); 2344 2331 2345 2332 module.exports = Library; 2346 },{"../attachment.js":16}],19:[function(require,module,exports){2347 /*globals _, wp, jQuery */2348 2333 2334 },{"../attachment.js":16}],19:[function(require,module,exports){ 2349 2335 /** 2350 2336 * wp.media.view.Attachments 2351 2337 * … … 2618 2604 2619 2605 // The scroll event occurs on the document, but the element 2620 2606 // that should be checked is the document body. 2621 if ( el == document ) {2607 if ( el === document ) { 2622 2608 el = document.body; 2623 2609 scrollTop = $(document).scrollTop(); 2624 2610 } … … 2644 2630 }); 2645 2631 2646 2632 module.exports = Attachments; 2647 },{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){2648 /*globals _, wp, jQuery */2649 2633 2634 },{"./attachment.js":16,"./view.js":51}],20:[function(require,module,exports){ 2650 2635 /** 2651 2636 * wp.media.view.AttachmentsBrowser 2652 2637 * … … 2837 2822 return; 2838 2823 } 2839 2824 2840 if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {2825 if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) { 2841 2826 return; 2842 2827 } 2843 2828 2844 2829 if ( mediaTrash && 2845 2830 'trash' !== selection.at( 0 ).get( 'status' ) && 2846 ! confirm( l10n.warnBulkTrash ) ) {2831 ! window.confirm( l10n.warnBulkTrash ) ) { 2847 2832 2848 2833 return; 2849 2834 } … … 2891 2876 click: function() { 2892 2877 var removed = [], selection = this.controller.state().get( 'selection' ); 2893 2878 2894 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {2879 if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) { 2895 2880 return; 2896 2881 } 2897 2882 … … 3104 3089 }); 3105 3090 3106 3091 module.exports = AttachmentsBrowser; 3107 },{"../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 /*globals wp */3109 3092 3093 },{"../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){ 3110 3094 /** 3111 3095 * wp.media.view.AudioDetails 3112 3096 * … … 3143 3127 }); 3144 3128 3145 3129 module.exports = AudioDetails; 3146 },{"./media-details":31}],22:[function(require,module,exports){3147 /*globals _, Backbone */3148 3130 3131 },{"./media-details":31}],22:[function(require,module,exports){ 3149 3132 /** 3150 3133 * wp.media.view.Button 3151 3134 * … … 3233 3216 }); 3234 3217 3235 3218 module.exports = Button; 3219 3236 3220 },{"./view.js":51}],23:[function(require,module,exports){ 3237 3221 /** 3238 3222 * wp.media.view.FocusManager … … 3281 3265 }); 3282 3266 3283 3267 module.exports = FocusManager; 3284 },{"./view.js":51}],24:[function(require,module,exports){3285 /*globals _, Backbone */3286 3268 3269 },{"./view.js":51}],24:[function(require,module,exports){ 3287 3270 /** 3288 3271 * wp.media.view.Frame 3289 3272 * … … 3454 3437 _.extend( Frame.prototype, StateMachine.prototype ); 3455 3438 3456 3439 module.exports = Frame; 3457 },{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){3458 /*globals wp */3459 3440 3441 },{"../controllers/region.js":5,"../controllers/state-machine.js":6,"../controllers/state.js":7,"./view.js":51}],25:[function(require,module,exports){ 3460 3442 /** 3461 3443 * wp.media.view.MediaFrame.AudioDetails 3462 3444 * … … 3532 3514 }); 3533 3515 3534 3516 module.exports = AudioDetails; 3535 },{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){3536 /*globals wp */3537 3517 3518 },{"../../controllers/audio-details.js":2,"../../controllers/media-library.js":4,"../audio-details.js":21,"./media-details":26}],26:[function(require,module,exports){ 3538 3519 /** 3539 3520 * wp.media.view.MediaFrame.MediaDetails 3540 3521 * … … 3665 3646 }); 3666 3647 3667 3648 module.exports = MediaDetails; 3668 },{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){3669 /*globals _, wp */3670 3649 3650 },{"../toolbar.js":44,"../view.js":51,"./select.js":27}],27:[function(require,module,exports){ 3671 3651 /** 3672 3652 * wp.media.view.MediaFrame.Select 3673 3653 * … … 3840 3820 }); 3841 3821 3842 3822 module.exports = Select; 3843 },{"../../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 /*globals _, wp */3845 3823 3824 },{"../../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){ 3846 3825 /** 3847 3826 * wp.media.view.MediaFrame.VideoDetails 3848 3827 * … … 3978 3957 }); 3979 3958 3980 3959 module.exports = VideoDetails; 3960 3981 3961 },{"../../controllers/media-library.js":4,"../../controllers/video-details.js":8,"../video-details.js":50,"./media-details":26}],29:[function(require,module,exports){ 3982 3962 /** 3983 3963 * wp.media.view.Iframe … … 4004 3984 }); 4005 3985 4006 3986 module.exports = Iframe; 3987 4007 3988 },{"./view.js":51}],30:[function(require,module,exports){ 4008 3989 /** 4009 3990 * @class … … 4030 4011 }); 4031 4012 4032 4013 module.exports = Label; 4033 },{"./view.js":51}],31:[function(require,module,exports){4034 /*globals _, wp, jQuery */4035 4014 4015 },{"./view.js":51}],31:[function(require,module,exports){ 4036 4016 /** 4037 4017 * wp.media.view.MediaDetails 4038 4018 * … … 4116 4096 */ 4117 4097 setPlayer : function() { 4118 4098 if ( ! this.players.length && this.media ) { 4119 this.players.push( new MediaElementPlayer( this.media, this.settings ) );4099 this.players.push( new window.MediaElementPlayer( this.media, this.settings ) ); 4120 4100 } 4121 4101 }, 4122 4102 … … 4144 4124 */ 4145 4125 render: function() { 4146 4126 AttachmentDisplay.prototype.render.apply( this, arguments ); 4147 4127 4148 4128 setTimeout( _.bind( function() { 4149 4129 this.resetFocus(); 4150 4130 }, this ), 10 ); … … 4183 4163 }); 4184 4164 4185 4165 module.exports = MediaDetails; 4186 },{"./settings/attachment-display.js":41}],32:[function(require,module,exports){4187 /*globals _, wp, jQuery */4188 4166 4167 },{"./settings/attachment-display.js":41}],32:[function(require,module,exports){ 4189 4168 /** 4190 4169 * wp.media.view.MediaFrame 4191 4170 * … … 4438 4417 }); 4439 4418 4440 4419 module.exports = MediaFrame; 4441 },{"./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 /*globals wp, jQuery */4443 4420 4421 },{"./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){ 4444 4422 /** 4445 4423 * wp.media.view.MenuItem 4446 4424 * … … 4512 4490 }); 4513 4491 4514 4492 module.exports = MenuItem; 4493 4515 4494 },{"./view.js":51}],34:[function(require,module,exports){ 4516 4495 /** 4517 4496 * wp.media.view.Menu … … 4628 4607 }); 4629 4608 4630 4609 module.exports = Menu; 4631 },{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){4632 /*globals _, wp, jQuery */4633 4610 4611 },{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){ 4634 4612 /** 4635 4613 * wp.media.view.Modal 4636 4614 * … … 4844 4822 }); 4845 4823 4846 4824 module.exports = Modal; 4847 },{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){4848 /*globals _, Backbone */4849 4825 4826 },{"./focus-manager.js":23,"./view.js":51}],36:[function(require,module,exports){ 4850 4827 /** 4851 4828 * wp.media.view.PriorityList 4852 4829 * … … 4945 4922 }); 4946 4923 4947 4924 module.exports = PriorityList; 4925 4948 4926 },{"./view.js":51}],37:[function(require,module,exports){ 4949 4927 /** 4950 4928 * wp.media.view.RouterItem … … 4971 4949 }); 4972 4950 4973 4951 module.exports = RouterItem; 4952 4974 4953 },{"./menu-item.js":33}],38:[function(require,module,exports){ 4975 4954 /** 4976 4955 * wp.media.view.Router … … 5008 4987 }); 5009 4988 5010 4989 module.exports = Router; 5011 },{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){5012 /*globals wp */5013 4990 4991 },{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){ 5014 4992 /** 5015 4993 * wp.media.view.Search 5016 4994 * … … 5058 5036 }); 5059 5037 5060 5038 module.exports = Search; 5061 },{"./view.js":51}],40:[function(require,module,exports){5062 /*globals _, Backbone, jQuery */5063 5039 5040 },{"./view.js":51}],40:[function(require,module,exports){ 5064 5041 /** 5065 5042 * wp.media.view.Settings 5066 5043 * … … 5168 5145 // If the setting has a corresponding user setting, 5169 5146 // update that as well. 5170 5147 if ( userSetting = $setting.data('userSetting') ) { 5171 setUserSetting( userSetting, value );5148 window.setUserSetting( userSetting, value ); 5172 5149 } 5173 5150 }, 5174 5151 … … 5180 5157 }); 5181 5158 5182 5159 module.exports = Settings; 5183 },{"./view.js":51}],41:[function(require,module,exports){5184 /*globals _, wp */5185 5160 5161 },{"./view.js":51}],41:[function(require,module,exports){ 5186 5162 /** 5187 5163 * wp.media.view.Settings.AttachmentDisplay 5188 5164 * … … 5275 5251 }); 5276 5252 5277 5253 module.exports = AttachmentDisplay; 5254 5278 5255 },{"../settings.js":40}],42:[function(require,module,exports){ 5279 5256 /** 5280 5257 * wp.media.view.Sidebar … … 5293 5270 }); 5294 5271 5295 5272 module.exports = Sidebar; 5296 },{"./priority-list.js":36}],43:[function(require,module,exports){5297 /*globals _, wp */5298 5273 5274 },{"./priority-list.js":36}],43:[function(require,module,exports){ 5299 5275 /** 5300 5276 * wp.media.view.Spinner 5301 5277 * … … 5332 5308 }); 5333 5309 5334 5310 module.exports = Spinner; 5335 },{"./view.js":51}],44:[function(require,module,exports){5336 /*globals Backbone, _ */5337 5311 5312 },{"./view.js":51}],44:[function(require,module,exports){ 5338 5313 /** 5339 5314 * wp.media.view.Toolbar 5340 5315 * … … 5495 5470 }); 5496 5471 5497 5472 module.exports = Toolbar; 5498 },{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){5499 /*globals _, wp */5500 5473 5474 },{"./button.js":22,"./priority-list.js":36,"./view.js":51}],45:[function(require,module,exports){ 5501 5475 /** 5502 5476 * wp.media.view.Toolbar.Select 5503 5477 * … … 5566 5540 }); 5567 5541 5568 5542 module.exports = Select; 5569 },{"../toolbar.js":44}],46:[function(require,module,exports){5570 /*globals _, wp */5571 5543 5544 },{"../toolbar.js":44}],46:[function(require,module,exports){ 5572 5545 /** 5573 5546 * wp.media.view.UploaderInline 5574 5547 * … … 5699 5672 }); 5700 5673 5701 5674 module.exports = UploaderInline; 5702 },{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){5703 /*globals wp */5704 5675 5676 },{"../view.js":51,"./status.js":48}],47:[function(require,module,exports){ 5705 5677 /** 5706 5678 * wp.media.view.UploaderStatusError 5707 5679 * … … 5719 5691 }); 5720 5692 5721 5693 module.exports = UploaderStatusError; 5722 },{"../view.js":51}],48:[function(require,module,exports){5723 /*globals _, wp */5724 5694 5695 },{"../view.js":51}],48:[function(require,module,exports){ 5725 5696 /** 5726 5697 * wp.media.view.UploaderStatus 5727 5698 * … … 5859 5830 }); 5860 5831 5861 5832 module.exports = UploaderStatus; 5862 },{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){5863 /*globals _, wp, jQuery */5864 5833 5834 },{"../view.js":51,"./status-error.js":47}],49:[function(require,module,exports){ 5865 5835 /** 5866 5836 * wp.media.view.UploaderWindow 5867 5837 * … … 5972 5942 }); 5973 5943 5974 5944 module.exports = UploaderWindow; 5975 },{"../view.js":51}],50:[function(require,module,exports){5976 /*globals wp */5977 5945 5946 },{"../view.js":51}],50:[function(require,module,exports){ 5978 5947 /** 5979 5948 * wp.media.view.VideoDetails 5980 5949 * … … 6016 5985 }); 6017 5986 6018 5987 module.exports = VideoDetails; 6019 },{"./media-details":31}],51:[function(require,module,exports){6020 /*globals wp */6021 5988 5989 },{"./media-details":31}],51:[function(require,module,exports){ 6022 5990 /** 6023 5991 * wp.media.View 6024 5992 * … … 6083 6051 }); 6084 6052 6085 6053 module.exports = View; 6054 6086 6055 },{}]},{},[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
1 1 (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 2 /*globals wp */3 4 2 /** 5 3 * wp.media.controller.EditAttachmentMetadata 6 4 * … … 28 26 }); 29 27 30 28 module.exports = EditAttachmentMetadata; 31 },{"./state.js":6}],2:[function(require,module,exports){32 /*globals _, wp */33 29 30 },{"./state.js":6}],2:[function(require,module,exports){ 34 31 /** 35 32 * wp.media.controller.EditImage 36 33 * … … 107 104 }); 108 105 109 106 module.exports = EditImage; 107 110 108 },{"../views/toolbar.js":46,"./state.js":6}],3:[function(require,module,exports){ 111 /* globals _, wp, Backbone,getUserSetting, setUserSetting */109 /* globals getUserSetting, setUserSetting */ 112 110 113 111 /** 114 112 * wp.media.controller.Library … … 181 179 this.set( 'library', wp.media.query() ); 182 180 } 183 181 184 if ( ! ( selection instanceof Selection) ) {182 if ( ! ( selection instanceof wp.media.model.Selection ) ) { 185 183 props = selection; 186 184 187 185 if ( ! props ) { … … 380 378 _.extend( Library.prototype, selectionSync ); 381 379 382 380 module.exports = Library; 383 },{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){384 /*globals _, Backbone */385 381 382 },{"../utils/selection-sync.js":9,"./state.js":6}],4:[function(require,module,exports){ 386 383 /** 387 384 * wp.media.controller.Region 388 385 * … … 560 557 }); 561 558 562 559 module.exports = Region; 563 },{}],5:[function(require,module,exports){564 /*globals _, Backbone */565 560 561 },{}],5:[function(require,module,exports){ 566 562 /** 567 563 * wp.media.controller.StateMachine 568 564 * … … 685 681 }); 686 682 687 683 module.exports = StateMachine; 688 },{}],6:[function(require,module,exports){689 /*globals _, Backbone */690 684 685 },{}],6:[function(require,module,exports){ 691 686 /** 692 687 * wp.media.controller.State 693 688 * … … 927 922 }); 928 923 929 924 module.exports = State; 925 930 926 },{}],7:[function(require,module,exports){ 931 /* global wp, _wpMediaViewsL10n, MediaElementPlayer, _wpMediaGridSettings */932 927 (function (wp) { 933 928 var media = wp.media; 934 929 … … 943 938 media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' ); 944 939 945 940 }(wp)); 946 },{"./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 /*globals jQuery, Backbone */948 941 942 },{"./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){ 949 943 /** 950 944 * A router for handling the browser history and application state. 951 945 * … … 990 984 }); 991 985 992 986 module.exports = Router; 993 },{}],9:[function(require,module,exports){994 /*globals _ */995 987 988 },{}],9:[function(require,module,exports){ 996 989 /** 997 990 * wp.media.selectionSync 998 991 * … … 1057 1050 }; 1058 1051 1059 1052 module.exports = selectionSync; 1060 },{}],10:[function(require,module,exports){1061 /*globals _ */1062 1053 1054 },{}],10:[function(require,module,exports){ 1063 1055 /** 1064 1056 * wp.media.view.AttachmentCompat 1065 1057 * … … 1143 1135 }); 1144 1136 1145 1137 module.exports = AttachmentCompat; 1146 },{"./view.js":51}],11:[function(require,module,exports){1147 /*globals _, jQuery */1148 1138 1139 },{"./view.js":51}],11:[function(require,module,exports){ 1149 1140 /** 1150 1141 * wp.media.view.AttachmentFilters 1151 1142 * … … 1222 1213 }); 1223 1214 1224 1215 module.exports = AttachmentFilters; 1225 },{"./view.js":51}],12:[function(require,module,exports){1226 /*globals _, wp */1227 1216 1217 },{"./view.js":51}],12:[function(require,module,exports){ 1228 1218 /** 1229 1219 * wp.media.view.AttachmentFilters.All 1230 1220 * … … 1314 1304 }); 1315 1305 1316 1306 module.exports = All; 1317 },{"../attachment-filters.js":11}],13:[function(require,module,exports){1318 /*globals _, wp */1319 1307 1308 },{"../attachment-filters.js":11}],13:[function(require,module,exports){ 1320 1309 /** 1321 1310 * A filter dropdown for month/dates. 1322 1311 * … … 1357 1346 }); 1358 1347 1359 1348 module.exports = DateFilter; 1360 },{"../attachment-filters.js":11}],14:[function(require,module,exports){1361 /*globals wp */1362 1349 1350 },{"../attachment-filters.js":11}],14:[function(require,module,exports){ 1363 1351 /** 1364 1352 * wp.media.view.AttachmentFilters.Uploaded 1365 1353 * … … 1418 1406 }); 1419 1407 1420 1408 module.exports = Uploaded; 1421 },{"../attachment-filters.js":11}],15:[function(require,module,exports){1422 /*globals _, wp, jQuery */1423 1409 1410 },{"../attachment-filters.js":11}],15:[function(require,module,exports){ 1424 1411 /** 1425 1412 * wp.media.view.Attachment 1426 1413 * … … 1973 1960 }); 1974 1961 1975 1962 module.exports = Attachment; 1976 },{"./view.js":51}],16:[function(require,module,exports){1977 /*globals wp */1978 1963 1964 },{"./view.js":51}],16:[function(require,module,exports){ 1979 1965 /** 1980 1966 * A similar view to media.view.Attachment.Details 1981 1967 * for use in the Edit Attachment modal. … … 2010 1996 wp.media.mixin.removeAllPlayers(); 2011 1997 this.$( 'audio, video' ).each( function (i, elem) { 2012 1998 var el = MediaDetails.prepareSrc( elem ); 2013 new MediaElementPlayer( el, wp.media.mixin.mejsSettings );1999 new window.MediaElementPlayer( el, wp.media.mixin.mejsSettings ); 2014 2000 } ); 2015 2001 } 2016 2002 }); 2017 2003 2018 2004 module.exports = TwoColumn; 2019 },{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){2020 /*globals _, wp */2021 2005 2006 },{"../media-details.js":33,"./details.js":17}],17:[function(require,module,exports){ 2022 2007 /** 2023 2008 * wp.media.view.Attachment.Details 2024 2009 * … … 2078 2063 deleteAttachment: function( event ) { 2079 2064 event.preventDefault(); 2080 2065 2081 if ( confirm( l10n.warnDelete ) ) {2066 if ( window.confirm( l10n.warnDelete ) ) { 2082 2067 this.model.destroy(); 2083 2068 // Keep focus inside media modal 2084 2069 // after image is deleted … … 2157 2142 }); 2158 2143 2159 2144 module.exports = Details; 2145 2160 2146 },{"../attachment.js":15}],18:[function(require,module,exports){ 2161 2147 /** 2162 2148 * wp.media.view.Attachment.Library … … 2177 2163 }); 2178 2164 2179 2165 module.exports = Library; 2180 },{"../attachment.js":15}],19:[function(require,module,exports){2181 /*globals _, wp, jQuery */2182 2166 2167 },{"../attachment.js":15}],19:[function(require,module,exports){ 2183 2168 /** 2184 2169 * wp.media.view.Attachments 2185 2170 * … … 2452 2437 2453 2438 // The scroll event occurs on the document, but the element 2454 2439 // that should be checked is the document body. 2455 if ( el == document ) {2440 if ( el === document ) { 2456 2441 el = document.body; 2457 2442 scrollTop = $(document).scrollTop(); 2458 2443 } … … 2478 2463 }); 2479 2464 2480 2465 module.exports = Attachments; 2481 },{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){2482 /*globals _, wp, jQuery */2483 2466 2467 },{"./attachment.js":15,"./view.js":51}],20:[function(require,module,exports){ 2484 2468 /** 2485 2469 * wp.media.view.AttachmentsBrowser 2486 2470 * … … 2671 2655 return; 2672 2656 } 2673 2657 2674 if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {2658 if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) { 2675 2659 return; 2676 2660 } 2677 2661 2678 2662 if ( mediaTrash && 2679 2663 'trash' !== selection.at( 0 ).get( 'status' ) && 2680 ! confirm( l10n.warnBulkTrash ) ) {2664 ! window.confirm( l10n.warnBulkTrash ) ) { 2681 2665 2682 2666 return; 2683 2667 } … … 2725 2709 click: function() { 2726 2710 var removed = [], selection = this.controller.state().get( 'selection' ); 2727 2711 2728 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {2712 if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) { 2729 2713 return; 2730 2714 } 2731 2715 … … 2938 2922 }); 2939 2923 2940 2924 module.exports = AttachmentsBrowser; 2941 },{"../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 /*globals _, Backbone */2943 2925 2926 },{"../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){ 2944 2927 /** 2945 2928 * wp.media.view.Button 2946 2929 * … … 3028 3011 }); 3029 3012 3030 3013 module.exports = Button; 3014 3031 3015 },{"./view.js":51}],22:[function(require,module,exports){ 3032 3016 /** 3033 3017 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic … … 3072 3056 }); 3073 3057 3074 3058 module.exports = DeleteSelectedPermanently; 3075 },{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){3076 /*globals wp */3077 3059 3060 },{"../button.js":21,"./delete-selected.js":23}],23:[function(require,module,exports){ 3078 3061 /** 3079 3062 * A button that handles bulk Delete/Trash logic 3080 3063 * … … 3124 3107 }); 3125 3108 3126 3109 module.exports = DeleteSelected; 3127 },{"../button.js":21}],24:[function(require,module,exports){3128 /*globals wp */3129 3110 3111 },{"../button.js":21}],24:[function(require,module,exports){ 3130 3112 var Button = require( '../button.js' ), 3131 3113 l10n = wp.media.view.l10n, 3132 3114 SelectModeToggle; … … 3180 3162 }); 3181 3163 3182 3164 module.exports = SelectModeToggle; 3165 3183 3166 },{"../button.js":21}],25:[function(require,module,exports){ 3184 3167 var View = require( './view.js' ), 3185 3168 EditImage = require( './edit-image.js' ), … … 3205 3188 }); 3206 3189 3207 3190 module.exports = Details; 3208 },{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){3209 /*globals _, wp */3210 3191 3192 },{"./edit-image.js":26,"./view.js":51}],26:[function(require,module,exports){ 3211 3193 var View = require( './view.js' ), 3212 3194 EditImage; 3213 3195 … … 3259 3241 }); 3260 3242 3261 3243 module.exports = EditImage; 3244 3262 3245 },{"./view.js":51}],27:[function(require,module,exports){ 3263 3246 /** 3264 3247 * wp.media.view.FocusManager … … 3307 3290 }); 3308 3291 3309 3292 module.exports = FocusManager; 3310 },{"./view.js":51}],28:[function(require,module,exports){3311 /*globals _, Backbone */3312 3293 3294 },{"./view.js":51}],28:[function(require,module,exports){ 3313 3295 /** 3314 3296 * wp.media.view.Frame 3315 3297 * … … 3480 3462 _.extend( Frame.prototype, StateMachine.prototype ); 3481 3463 3482 3464 module.exports = Frame; 3483 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){3484 /*globals _, wp, jQuery */3485 3465 3466 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":51}],29:[function(require,module,exports){ 3486 3467 /** 3487 3468 * A frame for editing the details of a specific media item. 3488 3469 * … … 3727 3708 }); 3728 3709 3729 3710 module.exports = EditAttachments; 3730 },{"../../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 /*globals _, Backbone, wp, jQuery */3732 3711 3712 },{"../../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){ 3733 3713 /** 3734 3714 * wp.media.view.MediaFrame.Manage 3735 3715 * … … 3967 3947 // Verify pushState support and activate 3968 3948 if ( window.history && window.history.pushState ) { 3969 3949 Backbone.history.start( { 3970 root: _wpMediaGridSettings.adminUrl,3950 root: window._wpMediaGridSettings.adminUrl, 3971 3951 pushState: true 3972 3952 } ); 3973 3953 } … … 3975 3955 }); 3976 3956 3977 3957 module.exports = Manage; 3958 3978 3959 },{"../../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 3960 /** 3980 3961 * wp.media.view.Iframe … … 4001 3982 }); 4002 3983 4003 3984 module.exports = Iframe; 3985 4004 3986 },{"./view.js":51}],32:[function(require,module,exports){ 4005 3987 /** 4006 3988 * @class … … 4027 4009 }); 4028 4010 4029 4011 module.exports = Label; 4030 },{"./view.js":51}],33:[function(require,module,exports){4031 /*globals _, wp, jQuery */4032 4012 4013 },{"./view.js":51}],33:[function(require,module,exports){ 4033 4014 /** 4034 4015 * wp.media.view.MediaDetails 4035 4016 * … … 4113 4094 */ 4114 4095 setPlayer : function() { 4115 4096 if ( ! this.players.length && this.media ) { 4116 this.players.push( new MediaElementPlayer( this.media, this.settings ) );4097 this.players.push( new window.MediaElementPlayer( this.media, this.settings ) ); 4117 4098 } 4118 4099 }, 4119 4100 … … 4141 4122 */ 4142 4123 render: function() { 4143 4124 AttachmentDisplay.prototype.render.apply( this, arguments ); 4144 4125 4145 4126 setTimeout( _.bind( function() { 4146 4127 this.resetFocus(); 4147 4128 }, this ), 10 ); … … 4180 4161 }); 4181 4162 4182 4163 module.exports = MediaDetails; 4183 },{"./settings/attachment-display.js":43}],34:[function(require,module,exports){4184 /*globals _, wp, jQuery */4185 4164 4165 },{"./settings/attachment-display.js":43}],34:[function(require,module,exports){ 4186 4166 /** 4187 4167 * wp.media.view.MediaFrame 4188 4168 * … … 4435 4415 }); 4436 4416 4437 4417 module.exports = MediaFrame; 4438 },{"./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 /*globals wp, jQuery */4440 4418 4419 },{"./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){ 4441 4420 /** 4442 4421 * wp.media.view.MenuItem 4443 4422 * … … 4509 4488 }); 4510 4489 4511 4490 module.exports = MenuItem; 4491 4512 4492 },{"./view.js":51}],36:[function(require,module,exports){ 4513 4493 /** 4514 4494 * wp.media.view.Menu … … 4625 4605 }); 4626 4606 4627 4607 module.exports = Menu; 4628 },{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){4629 /*globals _, wp, jQuery */4630 4608 4609 },{"./menu-item.js":35,"./priority-list.js":38}],37:[function(require,module,exports){ 4631 4610 /** 4632 4611 * wp.media.view.Modal 4633 4612 * … … 4841 4820 }); 4842 4821 4843 4822 module.exports = Modal; 4844 },{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){4845 /*globals _, Backbone */4846 4823 4824 },{"./focus-manager.js":27,"./view.js":51}],38:[function(require,module,exports){ 4847 4825 /** 4848 4826 * wp.media.view.PriorityList 4849 4827 * … … 4942 4920 }); 4943 4921 4944 4922 module.exports = PriorityList; 4923 4945 4924 },{"./view.js":51}],39:[function(require,module,exports){ 4946 4925 /** 4947 4926 * wp.media.view.RouterItem … … 4968 4947 }); 4969 4948 4970 4949 module.exports = RouterItem; 4950 4971 4951 },{"./menu-item.js":35}],40:[function(require,module,exports){ 4972 4952 /** 4973 4953 * wp.media.view.Router … … 5005 4985 }); 5006 4986 5007 4987 module.exports = Router; 5008 },{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){5009 /*globals wp */5010 4988 4989 },{"./menu.js":36,"./router-item.js":39}],41:[function(require,module,exports){ 5011 4990 /** 5012 4991 * wp.media.view.Search 5013 4992 * … … 5055 5034 }); 5056 5035 5057 5036 module.exports = Search; 5058 },{"./view.js":51}],42:[function(require,module,exports){5059 /*globals _, Backbone, jQuery */5060 5037 5038 },{"./view.js":51}],42:[function(require,module,exports){ 5061 5039 /** 5062 5040 * wp.media.view.Settings 5063 5041 * … … 5165 5143 // If the setting has a corresponding user setting, 5166 5144 // update that as well. 5167 5145 if ( userSetting = $setting.data('userSetting') ) { 5168 setUserSetting( userSetting, value );5146 window.setUserSetting( userSetting, value ); 5169 5147 } 5170 5148 }, 5171 5149 … … 5177 5155 }); 5178 5156 5179 5157 module.exports = Settings; 5180 },{"./view.js":51}],43:[function(require,module,exports){5181 /*globals _, wp */5182 5158 5159 },{"./view.js":51}],43:[function(require,module,exports){ 5183 5160 /** 5184 5161 * wp.media.view.Settings.AttachmentDisplay 5185 5162 * … … 5272 5249 }); 5273 5250 5274 5251 module.exports = AttachmentDisplay; 5252 5275 5253 },{"../settings.js":42}],44:[function(require,module,exports){ 5276 5254 /** 5277 5255 * wp.media.view.Sidebar … … 5290 5268 }); 5291 5269 5292 5270 module.exports = Sidebar; 5293 },{"./priority-list.js":38}],45:[function(require,module,exports){5294 /*globals _, wp */5295 5271 5272 },{"./priority-list.js":38}],45:[function(require,module,exports){ 5296 5273 /** 5297 5274 * wp.media.view.Spinner 5298 5275 * … … 5329 5306 }); 5330 5307 5331 5308 module.exports = Spinner; 5332 },{"./view.js":51}],46:[function(require,module,exports){5333 /*globals Backbone, _ */5334 5309 5310 },{"./view.js":51}],46:[function(require,module,exports){ 5335 5311 /** 5336 5312 * wp.media.view.Toolbar 5337 5313 * … … 5492 5468 }); 5493 5469 5494 5470 module.exports = Toolbar; 5495 },{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){5496 /*globals _, wp */5497 5471 5472 },{"./button.js":21,"./priority-list.js":38,"./view.js":51}],47:[function(require,module,exports){ 5498 5473 /** 5499 5474 * wp.media.view.UploaderInline 5500 5475 * … … 5625 5600 }); 5626 5601 5627 5602 module.exports = UploaderInline; 5628 },{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){5629 /*globals wp */5630 5603 5604 },{"../view.js":51,"./status.js":49}],48:[function(require,module,exports){ 5631 5605 /** 5632 5606 * wp.media.view.UploaderStatusError 5633 5607 * … … 5645 5619 }); 5646 5620 5647 5621 module.exports = UploaderStatusError; 5648 },{"../view.js":51}],49:[function(require,module,exports){5649 /*globals _, wp */5650 5622 5623 },{"../view.js":51}],49:[function(require,module,exports){ 5651 5624 /** 5652 5625 * wp.media.view.UploaderStatus 5653 5626 * … … 5785 5758 }); 5786 5759 5787 5760 module.exports = UploaderStatus; 5788 },{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){5789 /*globals _, wp, jQuery */5790 5761 5762 },{"../view.js":51,"./status-error.js":48}],50:[function(require,module,exports){ 5791 5763 /** 5792 5764 * wp.media.view.UploaderWindow 5793 5765 * … … 5898 5870 }); 5899 5871 5900 5872 module.exports = UploaderWindow; 5901 },{"../view.js":51}],51:[function(require,module,exports){5902 /*globals wp */5903 5873 5874 },{"../view.js":51}],51:[function(require,module,exports){ 5904 5875 /** 5905 5876 * wp.media.View 5906 5877 * … … 5965 5936 }); 5966 5937 5967 5938 module.exports = View; 5939 5968 5940 },{}]},{},[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 },{"./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 /*globals jQuery, Backbone, _, wp */236 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){ 237 236 /** 238 237 * wp.media.model.Attachment 239 238 * … … 362 361 return $.Deferred().rejectWith( this ).promise(); 363 362 } 364 363 365 return media.post( 'save-attachment-compat', _.defaults({364 return wp.media.post( 'save-attachment-compat', _.defaults({ 366 365 id: this.id, 367 366 nonce: this.get('nonces').update, 368 367 post_id: wp.media.model.settings.post.id … … 400 399 }); 401 400 402 401 module.exports = Attachment; 403 },{"./attachments.js":3}],3:[function(require,module,exports){404 /*globals jQuery, Backbone, _, wp */405 402 403 },{"./attachments.js":3}],3:[function(require,module,exports){ 406 404 /** 407 405 * wp.media.model.Attachments 408 406 * … … 726 724 // checking if we're still mirroring that collection when 727 725 // the request resolves. 728 726 mirroring.more( options ).done( function() { 729 if ( this === attachments.mirroring ) 727 if ( this === attachments.mirroring ) { 730 728 deferred.resolveWith( this ); 729 } 731 730 }); 732 731 733 732 return deferred.promise(); … … 936 935 }); 937 936 938 937 module.exports = Attachments; 939 },{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){940 /*globals jQuery, Backbone */941 938 939 },{"./attachment.js":2,"./query.js":5}],4:[function(require,module,exports){ 942 940 /** 943 941 * wp.media.model.PostImage 944 942 * … … 1093 1091 }); 1094 1092 1095 1093 module.exports = PostImage; 1096 },{"./attachment":2}],5:[function(require,module,exports){1097 /*globals jQuery, _, wp */1098 1094 1095 },{"./attachment":2}],5:[function(require,module,exports){ 1099 1096 /** 1100 1097 * wp.media.model.Query 1101 1098 * … … 1402 1399 }); 1403 1400 1404 1401 module.exports = Query; 1405 },{"./attachments.js":3}],6:[function(require,module,exports){1406 /*globals _ */1407 1402 1403 },{"./attachments.js":3}],6:[function(require,module,exports){ 1408 1404 /** 1409 1405 * wp.media.model.Selection 1410 1406 * … … 1500 1496 }); 1501 1497 1502 1498 module.exports = Selection; 1499 1503 1500 },{"./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
1 1 (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 2 /*globals _, wp */3 4 2 /** 5 3 * wp.media.controller.CollectionAdd 6 4 * … … 100 98 }); 101 99 102 100 module.exports = CollectionAdd; 103 },{"./library.js":10}],2:[function(require,module,exports){104 /*globals wp, jQuery, Backbone */105 101 102 },{"./library.js":10}],2:[function(require,module,exports){ 106 103 /** 107 104 * wp.media.controller.CollectionEdit 108 105 * … … 263 260 }); 264 261 265 262 module.exports = CollectionEdit; 266 },{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){267 /*globals _, wp, Backbone */268 263 264 },{"../views/attachment/edit-library.js":25,"../views/view.js":71,"./library.js":10}],3:[function(require,module,exports){ 269 265 /** 270 266 * wp.media.controller.Cropper 271 267 * … … 341 337 342 338 this.$el.text(l10n.cropping); 343 339 this.$el.attr('disabled', true); 344 340 345 341 controller.state().doCrop( selection ).done( function( croppedImage ) { 346 342 controller.trigger('cropped', croppedImage ); 347 343 controller.close(); … … 383 379 }); 384 380 385 381 module.exports = Cropper; 386 },{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){387 /*globals _, wp */388 382 383 },{"../views/cropper.js":34,"../views/toolbar.js":63,"./state.js":15}],4:[function(require,module,exports){ 389 384 /** 390 385 * wp.media.controller.EditImage 391 386 * … … 462 457 }); 463 458 464 459 module.exports = EditImage; 465 },{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){466 /*globals _, wp, jQuery, Backbone */467 460 461 },{"../views/toolbar.js":63,"./state.js":15}],5:[function(require,module,exports){ 468 462 /** 469 463 * wp.media.controller.Embed 470 464 * … … 600 594 }); 601 595 602 596 module.exports = Embed; 603 },{"./state.js":15}],6:[function(require,module,exports){604 /*globals _, wp */605 597 598 },{"./state.js":15}],6:[function(require,module,exports){ 606 599 /** 607 600 * wp.media.controller.FeaturedImage 608 601 * … … 723 716 }); 724 717 725 718 module.exports = FeaturedImage; 726 },{"./library.js":10}],7:[function(require,module,exports){727 /*globals _, wp */728 719 720 },{"./library.js":10}],7:[function(require,module,exports){ 729 721 /** 730 722 * A state for selecting more images to add to a gallery. 731 723 * … … 777 769 */ 778 770 initialize: function() { 779 771 // If a library wasn't supplied, create a library of images. 780 if ( ! this.get('library') ) 772 if ( ! this.get('library') ) { 781 773 this.set( 'library', wp.media.query({ type: 'image' }) ); 774 } 782 775 783 776 Library.prototype.initialize.apply( this, arguments ); 784 777 }, … … 790 783 var library = this.get('library'), 791 784 edit = this.frame.state('gallery-edit').get('library'); 792 785 793 if ( this.editLibrary && this.editLibrary !== edit ) 786 if ( this.editLibrary && this.editLibrary !== edit ) { 794 787 library.unobserve( this.editLibrary ); 788 } 795 789 796 790 // Accepts attachments that exist in the original library and 797 791 // that do not exist in gallery's library. … … 811 805 }); 812 806 813 807 module.exports = GalleryAdd; 814 },{"./library.js":10}],8:[function(require,module,exports){815 /*globals wp, Backbone */816 808 809 },{"./library.js":10}],8:[function(require,module,exports){ 817 810 /** 818 811 * wp.media.controller.GalleryEdit 819 812 * … … 875 868 */ 876 869 initialize: function() { 877 870 // If we haven't been provided a `library`, create a `Selection`. 878 if ( ! this.get('library') ) 871 if ( ! this.get('library') ) { 879 872 this.set( 'library', new wp.media.model.Selection() ); 873 } 880 874 881 875 // The single `Attachment` view to be used in the `Attachments` view. 882 if ( ! this.get('AttachmentView') ) 876 if ( ! this.get('AttachmentView') ) { 883 877 this.set( 'AttachmentView', EditLibraryView ); 878 } 879 884 880 Library.prototype.initialize.apply( this, arguments ); 885 881 }, 886 882 … … 951 947 }); 952 948 953 949 module.exports = GalleryEdit; 954 },{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){955 /*globals _, wp */956 950 951 },{"../views/attachment/edit-library.js":25,"../views/settings/gallery.js":59,"./library.js":10}],9:[function(require,module,exports){ 957 952 /** 958 953 * wp.media.controller.ImageDetails 959 954 * … … 1014 1009 }); 1015 1010 1016 1011 module.exports = ImageDetails; 1012 1017 1013 },{"./library.js":10,"./state.js":15}],10:[function(require,module,exports){ 1018 /* globals _, wp, Backbone,getUserSetting, setUserSetting */1014 /* globals getUserSetting, setUserSetting */ 1019 1015 1020 1016 /** 1021 1017 * wp.media.controller.Library … … 1088 1084 this.set( 'library', wp.media.query() ); 1089 1085 } 1090 1086 1091 if ( ! ( selection instanceof Selection) ) {1087 if ( ! ( selection instanceof wp.media.model.Selection ) ) { 1092 1088 props = selection; 1093 1089 1094 1090 if ( ! props ) { … … 1287 1283 _.extend( Library.prototype, selectionSync ); 1288 1284 1289 1285 module.exports = Library; 1290 },{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){1291 /*globals _, wp */1292 1286 1287 },{"../utils/selection-sync.js":16,"./state.js":15}],11:[function(require,module,exports){ 1293 1288 /** 1294 1289 * wp.media.controller.MediaLibrary 1295 1290 * … … 1338 1333 }); 1339 1334 1340 1335 module.exports = MediaLibrary; 1341 },{"./library.js":10}],12:[function(require,module,exports){1342 /*globals _, Backbone */1343 1336 1337 },{"./library.js":10}],12:[function(require,module,exports){ 1344 1338 /** 1345 1339 * wp.media.controller.Region 1346 1340 * … … 1518 1512 }); 1519 1513 1520 1514 module.exports = Region; 1521 },{}],13:[function(require,module,exports){1522 /*globals _, wp */1523 1515 1516 },{}],13:[function(require,module,exports){ 1524 1517 /** 1525 1518 * wp.media.controller.ReplaceImage 1526 1519 * … … 1627 1620 }); 1628 1621 1629 1622 module.exports = ReplaceImage; 1630 },{"./library.js":10}],14:[function(require,module,exports){1631 /*globals _, Backbone */1632 1623 1624 },{"./library.js":10}],14:[function(require,module,exports){ 1633 1625 /** 1634 1626 * wp.media.controller.StateMachine 1635 1627 * … … 1752 1744 }); 1753 1745 1754 1746 module.exports = StateMachine; 1755 },{}],15:[function(require,module,exports){1756 /*globals _, Backbone */1757 1747 1748 },{}],15:[function(require,module,exports){ 1758 1749 /** 1759 1750 * wp.media.controller.State 1760 1751 * … … 1994 1985 }); 1995 1986 1996 1987 module.exports = State; 1997 },{}],16:[function(require,module,exports){1998 /*globals _ */1999 1988 1989 },{}],16:[function(require,module,exports){ 2000 1990 /** 2001 1991 * wp.media.selectionSync 2002 1992 * … … 2061 2051 }; 2062 2052 2063 2053 module.exports = selectionSync; 2054 2064 2055 },{}],17:[function(require,module,exports){ 2065 /* global _wpMediaViewsL10n , confirm, getUserSetting, setUserSetting*/2056 /* global _wpMediaViewsL10n */ 2066 2057 ( function( $, _ ) { 2067 2058 var l10n, 2068 2059 media = wp.media; … … 2211 2202 2212 2203 }(jQuery, _)); 2213 2204 },{"./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 /*globals _ */2215 2216 2205 /** 2217 2206 * wp.media.view.AttachmentCompat 2218 2207 * … … 2296 2285 }); 2297 2286 2298 2287 module.exports = AttachmentCompat; 2299 },{"./view.js":71}],19:[function(require,module,exports){2300 /*globals _, jQuery */2301 2288 2289 },{"./view.js":71}],19:[function(require,module,exports){ 2302 2290 /** 2303 2291 * wp.media.view.AttachmentFilters 2304 2292 * … … 2375 2363 }); 2376 2364 2377 2365 module.exports = AttachmentFilters; 2378 },{"./view.js":71}],20:[function(require,module,exports){2379 /*globals _, wp */2380 2366 2367 },{"./view.js":71}],20:[function(require,module,exports){ 2381 2368 /** 2382 2369 * wp.media.view.AttachmentFilters.All 2383 2370 * … … 2467 2454 }); 2468 2455 2469 2456 module.exports = All; 2470 },{"../attachment-filters.js":19}],21:[function(require,module,exports){2471 /*globals _, wp */2472 2457 2458 },{"../attachment-filters.js":19}],21:[function(require,module,exports){ 2473 2459 /** 2474 2460 * A filter dropdown for month/dates. 2475 2461 * … … 2510 2496 }); 2511 2497 2512 2498 module.exports = DateFilter; 2513 },{"../attachment-filters.js":19}],22:[function(require,module,exports){2514 /*globals wp */2515 2499 2500 },{"../attachment-filters.js":19}],22:[function(require,module,exports){ 2516 2501 /** 2517 2502 * wp.media.view.AttachmentFilters.Uploaded 2518 2503 * … … 2571 2556 }); 2572 2557 2573 2558 module.exports = Uploaded; 2574 },{"../attachment-filters.js":19}],23:[function(require,module,exports){2575 /*globals _, wp, jQuery */2576 2559 2560 },{"../attachment-filters.js":19}],23:[function(require,module,exports){ 2577 2561 /** 2578 2562 * wp.media.view.Attachment 2579 2563 * … … 3126 3110 }); 3127 3111 3128 3112 module.exports = Attachment; 3129 },{"./view.js":71}],24:[function(require,module,exports){3130 /*globals _, wp */3131 3113 3114 },{"./view.js":71}],24:[function(require,module,exports){ 3132 3115 /** 3133 3116 * wp.media.view.Attachment.Details 3134 3117 * … … 3188 3171 deleteAttachment: function( event ) { 3189 3172 event.preventDefault(); 3190 3173 3191 if ( confirm( l10n.warnDelete ) ) {3174 if ( window.confirm( l10n.warnDelete ) ) { 3192 3175 this.model.destroy(); 3193 3176 // Keep focus inside media modal 3194 3177 // after image is deleted … … 3267 3250 }); 3268 3251 3269 3252 module.exports = Details; 3253 3270 3254 },{"../attachment.js":23}],25:[function(require,module,exports){ 3271 3255 /** 3272 3256 * wp.media.view.Attachment.EditLibrary … … 3287 3271 }); 3288 3272 3289 3273 module.exports = EditLibrary; 3274 3290 3275 },{"../attachment.js":23}],26:[function(require,module,exports){ 3291 3276 /** 3292 3277 * wp.media.view.Attachments.EditSelection … … 3308 3293 }); 3309 3294 3310 3295 module.exports = EditSelection; 3296 3311 3297 },{"./selection.js":28}],27:[function(require,module,exports){ 3312 3298 /** 3313 3299 * wp.media.view.Attachment.Library … … 3328 3314 }); 3329 3315 3330 3316 module.exports = Library; 3317 3331 3318 },{"../attachment.js":23}],28:[function(require,module,exports){ 3332 3319 /** 3333 3320 * wp.media.view.Attachment.Selection … … 3352 3339 }); 3353 3340 3354 3341 module.exports = Selection; 3355 },{"../attachment.js":23}],29:[function(require,module,exports){3356 /*globals _, wp, jQuery */3357 3342 3343 },{"../attachment.js":23}],29:[function(require,module,exports){ 3358 3344 /** 3359 3345 * wp.media.view.Attachments 3360 3346 * … … 3627 3613 3628 3614 // The scroll event occurs on the document, but the element 3629 3615 // that should be checked is the document body. 3630 if ( el == document ) {3616 if ( el === document ) { 3631 3617 el = document.body; 3632 3618 scrollTop = $(document).scrollTop(); 3633 3619 } … … 3653 3639 }); 3654 3640 3655 3641 module.exports = Attachments; 3656 },{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){3657 /*globals _, wp, jQuery */3658 3642 3643 },{"./attachment.js":23,"./view.js":71}],30:[function(require,module,exports){ 3659 3644 /** 3660 3645 * wp.media.view.AttachmentsBrowser 3661 3646 * … … 3846 3831 return; 3847 3832 } 3848 3833 3849 if ( ! mediaTrash && ! confirm( l10n.warnBulkDelete ) ) {3834 if ( ! mediaTrash && ! window.confirm( l10n.warnBulkDelete ) ) { 3850 3835 return; 3851 3836 } 3852 3837 3853 3838 if ( mediaTrash && 3854 3839 'trash' !== selection.at( 0 ).get( 'status' ) && 3855 ! confirm( l10n.warnBulkTrash ) ) {3840 ! window.confirm( l10n.warnBulkTrash ) ) { 3856 3841 3857 3842 return; 3858 3843 } … … 3900 3885 click: function() { 3901 3886 var removed = [], selection = this.controller.state().get( 'selection' ); 3902 3887 3903 if ( ! selection.length || ! confirm( l10n.warnBulkDelete ) ) {3888 if ( ! selection.length || ! window.confirm( l10n.warnBulkDelete ) ) { 3904 3889 return; 3905 3890 } 3906 3891 … … 4113 4098 }); 4114 4099 4115 4100 module.exports = AttachmentsBrowser; 4116 },{"../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 /*globals _ */4118 4101 4102 },{"../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){ 4119 4103 /** 4120 4104 * wp.media.view.Attachments.Selection 4121 4105 * … … 4145 4129 }); 4146 4130 4147 4131 module.exports = Selection; 4148 },{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){4149 /*globals _, Backbone, jQuery */4150 4132 4133 },{"../attachment/selection.js":28,"../attachments.js":29}],32:[function(require,module,exports){ 4151 4134 /** 4152 4135 * wp.media.view.ButtonGroup 4153 4136 * … … 4194 4177 }); 4195 4178 4196 4179 module.exports = ButtonGroup; 4197 },{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){4198 /*globals _, Backbone */4199 4180 4181 },{"./button.js":33,"./view.js":71}],33:[function(require,module,exports){ 4200 4182 /** 4201 4183 * wp.media.view.Button 4202 4184 * … … 4284 4266 }); 4285 4267 4286 4268 module.exports = Button; 4287 },{"./view.js":71}],34:[function(require,module,exports){4288 /*globals _, wp, jQuery */4289 4269 4270 },{"./view.js":71}],34:[function(require,module,exports){ 4290 4271 /** 4291 4272 * wp.media.view.Cropper 4292 4273 * … … 4347 4328 4348 4329 this.views.add( '.upload-errors', new UploaderStatusError({ 4349 4330 filename: UploaderStatus.prototype.filename(filename), 4350 message: _wpMediaViewsL10n.cropError4331 message: window._wpMediaViewsL10n.cropError 4351 4332 }), { at: 0 }); 4352 4333 } 4353 4334 }); 4354 4335 4355 4336 module.exports = Cropper; 4356 },{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){4357 /*globals _, wp */4358 4337 4338 },{"./uploader/status-error.js":68,"./uploader/status.js":69,"./view.js":71}],35:[function(require,module,exports){ 4359 4339 var View = require( './view.js' ), 4360 4340 EditImage; 4361 4341 … … 4407 4387 }); 4408 4388 4409 4389 module.exports = EditImage; 4390 4410 4391 },{"./view.js":71}],36:[function(require,module,exports){ 4411 4392 /** 4412 4393 * wp.media.view.Embed … … 4476 4457 }); 4477 4458 4478 4459 module.exports = Embed; 4479 },{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){4480 /*globals wp */4481 4460 4461 },{"./embed/image.js":37,"./embed/link.js":38,"./embed/url.js":39,"./view.js":71}],37:[function(require,module,exports){ 4482 4462 /** 4483 4463 * wp.media.view.EmbedImage 4484 4464 * … … 4510 4490 }); 4511 4491 4512 4492 module.exports = EmbedImage; 4513 },{"../settings/attachment-display.js":58}],38:[function(require,module,exports){4514 /*globals _, wp, jQuery */4515 4493 4494 },{"../settings/attachment-display.js":58}],38:[function(require,module,exports){ 4516 4495 /** 4517 4496 * wp.media.view.EmbedLink 4518 4497 * … … 4578 4557 }); 4579 4558 4580 4559 module.exports = EmbedLink; 4581 },{"../settings.js":57}],39:[function(require,module,exports){4582 /*globals _, wp, jQuery */4583 4560 4561 },{"../settings.js":57}],39:[function(require,module,exports){ 4584 4562 /** 4585 4563 * wp.media.view.EmbedUrl 4586 4564 * … … 4658 4636 }); 4659 4637 4660 4638 module.exports = EmbedUrl; 4639 4661 4640 },{"../view.js":71}],40:[function(require,module,exports){ 4662 4641 /** 4663 4642 * wp.media.view.FocusManager … … 4706 4685 }); 4707 4686 4708 4687 module.exports = FocusManager; 4709 },{"./view.js":71}],41:[function(require,module,exports){4710 /*globals _, Backbone */4711 4688 4689 },{"./view.js":71}],41:[function(require,module,exports){ 4712 4690 /** 4713 4691 * wp.media.view.Frame 4714 4692 * … … 4879 4857 _.extend( Frame.prototype, StateMachine.prototype ); 4880 4858 4881 4859 module.exports = Frame; 4882 },{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){4883 /*globals wp */4884 4860 4861 },{"../controllers/region.js":12,"../controllers/state-machine.js":14,"../controllers/state.js":15,"./view.js":71}],42:[function(require,module,exports){ 4885 4862 /** 4886 4863 * wp.media.view.MediaFrame.ImageDetails 4887 4864 * … … 5063 5040 }); 5064 5041 5065 5042 module.exports = ImageDetails; 5066 },{"../../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 /*globals _, wp */5068 5043 5044 },{"../../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){ 5069 5045 /** 5070 5046 * wp.media.view.MediaFrame.Post 5071 5047 * … … 5815 5791 }); 5816 5792 5817 5793 module.exports = Post; 5818 },{"../../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 /*globals _, wp */5820 5794 5795 },{"../../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){ 5821 5796 /** 5822 5797 * wp.media.view.MediaFrame.Select 5823 5798 * … … 5990 5965 }); 5991 5966 5992 5967 module.exports = Select; 5968 5993 5969 },{"../../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 5970 /** 5995 5971 * wp.media.view.Iframe … … 6016 5992 }); 6017 5993 6018 5994 module.exports = Iframe; 6019 },{"./view.js":71}],46:[function(require,module,exports){6020 /*globals _, wp, jQuery */6021 5995 5996 },{"./view.js":71}],46:[function(require,module,exports){ 6022 5997 /** 6023 5998 * wp.media.view.ImageDetails 6024 5999 * … … 6092 6067 postRender: function() { 6093 6068 setTimeout( _.bind( this.resetFocus, this ), 10 ); 6094 6069 this.toggleLinkSettings(); 6095 if ( getUserSetting( 'advImgDetails' ) === 'show' ) {6070 if ( window.getUserSetting( 'advImgDetails' ) === 'show' ) { 6096 6071 this.toggleAdvanced( true ); 6097 6072 } 6098 6073 this.trigger( 'post-render' ); … … 6165 6140 mode = 'show'; 6166 6141 } 6167 6142 6168 setUserSetting( 'advImgDetails', mode );6143 window.setUserSetting( 'advImgDetails', mode ); 6169 6144 }, 6170 6145 6171 6146 editAttachment: function( event ) { … … 6185 6160 }); 6186 6161 6187 6162 module.exports = AttachmentDisplay; 6163 6188 6164 },{"./settings/attachment-display.js":58}],47:[function(require,module,exports){ 6189 6165 /** 6190 6166 * @class … … 6211 6187 }); 6212 6188 6213 6189 module.exports = Label; 6214 },{"./view.js":71}],48:[function(require,module,exports){6215 /*globals _, wp, jQuery */6216 6190 6191 },{"./view.js":71}],48:[function(require,module,exports){ 6217 6192 /** 6218 6193 * wp.media.view.MediaFrame 6219 6194 * … … 6466 6441 }); 6467 6442 6468 6443 module.exports = MediaFrame; 6469 },{"./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 /*globals wp, jQuery */6471 6444 6445 },{"./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){ 6472 6446 /** 6473 6447 * wp.media.view.MenuItem 6474 6448 * … … 6540 6514 }); 6541 6515 6542 6516 module.exports = MenuItem; 6517 6543 6518 },{"./view.js":71}],50:[function(require,module,exports){ 6544 6519 /** 6545 6520 * wp.media.view.Menu … … 6656 6631 }); 6657 6632 6658 6633 module.exports = Menu; 6659 },{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){6660 /*globals _, wp, jQuery */6661 6634 6635 },{"./menu-item.js":49,"./priority-list.js":52}],51:[function(require,module,exports){ 6662 6636 /** 6663 6637 * wp.media.view.Modal 6664 6638 * … … 6872 6846 }); 6873 6847 6874 6848 module.exports = Modal; 6875 },{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){6876 /*globals _, Backbone */6877 6849 6850 },{"./focus-manager.js":40,"./view.js":71}],52:[function(require,module,exports){ 6878 6851 /** 6879 6852 * wp.media.view.PriorityList 6880 6853 * … … 6973 6946 }); 6974 6947 6975 6948 module.exports = PriorityList; 6949 6976 6950 },{"./view.js":71}],53:[function(require,module,exports){ 6977 6951 /** 6978 6952 * wp.media.view.RouterItem … … 6999 6973 }); 7000 6974 7001 6975 module.exports = RouterItem; 6976 7002 6977 },{"./menu-item.js":49}],54:[function(require,module,exports){ 7003 6978 /** 7004 6979 * wp.media.view.Router … … 7036 7011 }); 7037 7012 7038 7013 module.exports = Router; 7039 },{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){7040 /*globals wp */7041 7014 7015 },{"./menu.js":50,"./router-item.js":53}],55:[function(require,module,exports){ 7042 7016 /** 7043 7017 * wp.media.view.Search 7044 7018 * … … 7086 7060 }); 7087 7061 7088 7062 module.exports = Search; 7089 },{"./view.js":71}],56:[function(require,module,exports){7090 /*globals _, Backbone, wp */7091 7063 7064 },{"./view.js":71}],56:[function(require,module,exports){ 7092 7065 /** 7093 7066 * wp.media.view.Selection 7094 7067 * … … 7172 7145 }); 7173 7146 7174 7147 module.exports = Selection; 7175 },{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){7176 /*globals _, Backbone, jQuery */7177 7148 7149 },{"./attachments/selection.js":31,"./view.js":71}],57:[function(require,module,exports){ 7178 7150 /** 7179 7151 * wp.media.view.Settings 7180 7152 * … … 7282 7254 // If the setting has a corresponding user setting, 7283 7255 // update that as well. 7284 7256 if ( userSetting = $setting.data('userSetting') ) { 7285 setUserSetting( userSetting, value );7257 window.setUserSetting( userSetting, value ); 7286 7258 } 7287 7259 }, 7288 7260 … … 7294 7266 }); 7295 7267 7296 7268 module.exports = Settings; 7297 },{"./view.js":71}],58:[function(require,module,exports){7298 /*globals _, wp */7299 7269 7270 },{"./view.js":71}],58:[function(require,module,exports){ 7300 7271 /** 7301 7272 * wp.media.view.Settings.AttachmentDisplay 7302 7273 * … … 7389 7360 }); 7390 7361 7391 7362 module.exports = AttachmentDisplay; 7392 },{"../settings.js":57}],59:[function(require,module,exports){7393 /*globals wp */7394 7363 7364 },{"../settings.js":57}],59:[function(require,module,exports){ 7395 7365 /** 7396 7366 * wp.media.view.Settings.Gallery 7397 7367 * … … 7410 7380 }); 7411 7381 7412 7382 module.exports = Gallery; 7413 },{"../settings.js":57}],60:[function(require,module,exports){7414 /*globals wp */7415 7383 7384 },{"../settings.js":57}],60:[function(require,module,exports){ 7416 7385 /** 7417 7386 * wp.media.view.Settings.Playlist 7418 7387 * … … 7431 7400 }); 7432 7401 7433 7402 module.exports = Playlist; 7403 7434 7404 },{"../settings.js":57}],61:[function(require,module,exports){ 7435 7405 /** 7436 7406 * wp.media.view.Sidebar … … 7449 7419 }); 7450 7420 7451 7421 module.exports = Sidebar; 7452 },{"./priority-list.js":52}],62:[function(require,module,exports){7453 /*globals _, wp */7454 7422 7423 },{"./priority-list.js":52}],62:[function(require,module,exports){ 7455 7424 /** 7456 7425 * wp.media.view.Spinner 7457 7426 * … … 7488 7457 }); 7489 7458 7490 7459 module.exports = Spinner; 7491 },{"./view.js":71}],63:[function(require,module,exports){7492 /*globals Backbone, _ */7493 7460 7461 },{"./view.js":71}],63:[function(require,module,exports){ 7494 7462 /** 7495 7463 * wp.media.view.Toolbar 7496 7464 * … … 7651 7619 }); 7652 7620 7653 7621 module.exports = Toolbar; 7654 },{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){7655 /*globals _, wp */7656 7622 7623 },{"./button.js":33,"./priority-list.js":52,"./view.js":71}],64:[function(require,module,exports){ 7657 7624 /** 7658 7625 * wp.media.view.Toolbar.Embed 7659 7626 * … … 7689 7656 }); 7690 7657 7691 7658 module.exports = Embed; 7692 },{"./select.js":65}],65:[function(require,module,exports){7693 /*globals _, wp */7694 7659 7660 },{"./select.js":65}],65:[function(require,module,exports){ 7695 7661 /** 7696 7662 * wp.media.view.Toolbar.Select 7697 7663 * … … 7760 7726 }); 7761 7727 7762 7728 module.exports = Select; 7763 },{"../toolbar.js":63}],66:[function(require,module,exports){7764 /*globals _, wp, jQuery */7765 7729 7730 },{"../toolbar.js":63}],66:[function(require,module,exports){ 7766 7731 /** 7767 7732 * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap 7768 7733 * or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow. … … 7980 7945 }); 7981 7946 7982 7947 module.exports = EditorUploader; 7983 },{"../view.js":71}],67:[function(require,module,exports){7984 /*globals _, wp */7985 7948 7949 },{"../view.js":71}],67:[function(require,module,exports){ 7986 7950 /** 7987 7951 * wp.media.view.UploaderInline 7988 7952 * … … 8113 8077 }); 8114 8078 8115 8079 module.exports = UploaderInline; 8116 },{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){8117 /*globals wp */8118 8080 8081 },{"../view.js":71,"./status.js":69}],68:[function(require,module,exports){ 8119 8082 /** 8120 8083 * wp.media.view.UploaderStatusError 8121 8084 * … … 8133 8096 }); 8134 8097 8135 8098 module.exports = UploaderStatusError; 8136 },{"../view.js":71}],69:[function(require,module,exports){8137 /*globals _, wp */8138 8099 8100 },{"../view.js":71}],69:[function(require,module,exports){ 8139 8101 /** 8140 8102 * wp.media.view.UploaderStatus 8141 8103 * … … 8273 8235 }); 8274 8236 8275 8237 module.exports = UploaderStatus; 8276 },{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){8277 /*globals _, wp, jQuery */8278 8238 8239 },{"../view.js":71,"./status-error.js":68}],70:[function(require,module,exports){ 8279 8240 /** 8280 8241 * wp.media.view.UploaderWindow 8281 8242 * … … 8386 8347 }); 8387 8348 8388 8349 module.exports = UploaderWindow; 8389 },{"../view.js":71}],71:[function(require,module,exports){8390 /*globals wp */8391 8350 8351 },{"../view.js":71}],71:[function(require,module,exports){ 8392 8352 /** 8393 8353 * wp.media.View 8394 8354 * … … 8453 8413 }); 8454 8414 8455 8415 module.exports = View; 8416 8456 8417 },{}]},{},[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;