Changeset 31489
- Timestamp:
- 02/22/2015 06:20:07 AM (10 years ago)
- Location:
- trunk/src/wp-includes/js/media
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media/grid.js
r31487 r31489 106 106 module.exports = EditImage; 107 107 108 },{"../views/toolbar.js":4 5,"./state.js":6}],3:[function(require,module,exports){108 },{"../views/toolbar.js":44,"./state.js":6}],3:[function(require,module,exports){ 109 109 /** 110 110 * wp.media.controller.Library … … 937 937 media.view.DeleteSelectedPermanentlyButton = require( './views/button/delete-selected-permanently.js' ); 938 938 939 },{"./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":2 9,"./views/frame/manage.js":30}],8:[function(require,module,exports){939 },{"./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":28,"./views/frame/manage.js":29}],8:[function(require,module,exports){ 940 940 /** 941 941 * A router for handling the browser history and application state. … … 1134 1134 module.exports = AttachmentCompat; 1135 1135 1136 },{"./view.js": 50}],11:[function(require,module,exports){1136 },{"./view.js":49}],11:[function(require,module,exports){ 1137 1137 /** 1138 1138 * wp.media.view.AttachmentFilters … … 1212 1212 module.exports = AttachmentFilters; 1213 1213 1214 },{"./view.js": 50}],12:[function(require,module,exports){1214 },{"./view.js":49}],12:[function(require,module,exports){ 1215 1215 /** 1216 1216 * wp.media.view.AttachmentFilters.All … … 1959 1959 module.exports = Attachment; 1960 1960 1961 },{"./view.js": 50}],16:[function(require,module,exports){1961 },{"./view.js":49}],16:[function(require,module,exports){ 1962 1962 /*globals wp */ 1963 1963 … … 2463 2463 module.exports = Attachments; 2464 2464 2465 },{"./attachment.js":15,"./view.js": 50}],20:[function(require,module,exports){2465 },{"./attachment.js":15,"./view.js":49}],20:[function(require,module,exports){ 2466 2466 /** 2467 2467 * wp.media.view.AttachmentsBrowser … … 2922 2922 module.exports = AttachmentsBrowser; 2923 2923 2924 },{"../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":3 2,"../search.js":40,"../settings/attachment-display.js":42,"../sidebar.js":43,"../spinner.js":44,"../toolbar.js":45,"../uploader/inline.js":46,"../uploader/status.js":48,"../view.js":50}],21:[function(require,module,exports){2924 },{"../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":31,"../search.js":39,"../settings/attachment-display.js":41,"../sidebar.js":42,"../spinner.js":43,"../toolbar.js":44,"../uploader/inline.js":45,"../uploader/status.js":47,"../view.js":49}],21:[function(require,module,exports){ 2925 2925 /** 2926 2926 * wp.media.view.Button … … 3011 3011 module.exports = Button; 3012 3012 3013 },{"./view.js": 50}],22:[function(require,module,exports){3013 },{"./view.js":49}],22:[function(require,module,exports){ 3014 3014 /** 3015 3015 * When MEDIA_TRASH is true, a button that handles bulk Delete Permanently logic … … 3163 3163 3164 3164 },{"../button.js":21}],25:[function(require,module,exports){ 3165 /*globals wp */ 3166 3165 3167 var View = require( './view.js' ), 3166 EditImage = require( './edit-image.js' ),3168 EditImage = wp.media.view.EditImage, 3167 3169 Details; 3168 3170 … … 3188 3190 module.exports = Details; 3189 3191 3190 },{"./edit-image.js":26,"./view.js":50}],26:[function(require,module,exports){ 3191 var View = require( './view.js' ), 3192 EditImage; 3193 3194 EditImage = View.extend({ 3195 className: 'image-editor', 3196 template: wp.template('image-editor'), 3197 3198 initialize: function( options ) { 3199 this.editor = window.imageEdit; 3200 this.controller = options.controller; 3201 View.prototype.initialize.apply( this, arguments ); 3202 }, 3203 3204 prepare: function() { 3205 return this.model.toJSON(); 3206 }, 3207 3208 render: function() { 3209 View.prototype.render.apply( this, arguments ); 3210 return this; 3211 }, 3212 3213 loadEditor: function() { 3214 var dfd = this.editor.open( this.model.get('id'), this.model.get('nonces').edit, this ); 3215 dfd.done( _.bind( this.focus, this ) ); 3216 }, 3217 3218 focus: function() { 3219 this.$( '.imgedit-submit .button' ).eq( 0 ).focus(); 3220 }, 3221 3222 back: function() { 3223 var lastState = this.controller.lastState(); 3224 this.controller.setState( lastState ); 3225 }, 3226 3227 refresh: function() { 3228 this.model.fetch(); 3229 }, 3230 3231 save: function() { 3232 var lastState = this.controller.lastState(); 3233 3234 this.model.fetch().done( _.bind( function() { 3235 this.controller.setState( lastState ); 3236 }, this ) ); 3237 } 3238 3239 }); 3240 3241 module.exports = EditImage; 3242 3243 },{"./view.js":50}],27:[function(require,module,exports){ 3192 },{"./view.js":49}],26:[function(require,module,exports){ 3244 3193 /** 3245 3194 * wp.media.view.FocusManager … … 3290 3239 module.exports = FocusManager; 3291 3240 3292 },{"./view.js": 50}],28:[function(require,module,exports){3241 },{"./view.js":49}],27:[function(require,module,exports){ 3293 3242 /** 3294 3243 * wp.media.view.Frame … … 3462 3411 module.exports = Frame; 3463 3412 3464 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js": 50}],29:[function(require,module,exports){3413 },{"../controllers/region.js":4,"../controllers/state-machine.js":5,"../controllers/state.js":6,"./view.js":49}],28:[function(require,module,exports){ 3465 3414 /** 3466 3415 * A frame for editing the details of a specific media item. … … 3708 3657 module.exports = EditAttachments; 3709 3658 3710 },{"../../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":2 8,"../media-frame.js":33,"../modal.js":36}],30:[function(require,module,exports){3659 },{"../../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":27,"../media-frame.js":32,"../modal.js":35}],29:[function(require,module,exports){ 3711 3660 /** 3712 3661 * wp.media.view.MediaFrame.Manage … … 3955 3904 module.exports = Manage; 3956 3905 3957 },{"../../controllers/library.js":3,"../../routers/manage.js":8,"../attachments/browser.js":20,"../media-frame.js":3 3,"../uploader/window.js":49}],31:[function(require,module,exports){3906 },{"../../controllers/library.js":3,"../../routers/manage.js":8,"../attachments/browser.js":20,"../media-frame.js":32,"../uploader/window.js":48}],30:[function(require,module,exports){ 3958 3907 /** 3959 3908 * wp.media.view.Iframe … … 3982 3931 module.exports = Iframe; 3983 3932 3984 },{"./view.js": 50}],32:[function(require,module,exports){3933 },{"./view.js":49}],31:[function(require,module,exports){ 3985 3934 /** 3986 3935 * @class … … 4009 3958 module.exports = Label; 4010 3959 4011 },{"./view.js": 50}],33:[function(require,module,exports){3960 },{"./view.js":49}],32:[function(require,module,exports){ 4012 3961 /** 4013 3962 * wp.media.view.MediaFrame … … 4263 4212 module.exports = MediaFrame; 4264 4213 4265 },{"./frame.js":2 8,"./iframe.js":31,"./menu.js":35,"./modal.js":36,"./router.js":39,"./toolbar.js":45,"./uploader/window.js":49,"./view.js":50}],34:[function(require,module,exports){4214 },{"./frame.js":27,"./iframe.js":30,"./menu.js":34,"./modal.js":35,"./router.js":38,"./toolbar.js":44,"./uploader/window.js":48,"./view.js":49}],33:[function(require,module,exports){ 4266 4215 /** 4267 4216 * wp.media.view.MenuItem … … 4336 4285 module.exports = MenuItem; 4337 4286 4338 },{"./view.js": 50}],35:[function(require,module,exports){4287 },{"./view.js":49}],34:[function(require,module,exports){ 4339 4288 /** 4340 4289 * wp.media.view.Menu … … 4453 4402 module.exports = Menu; 4454 4403 4455 },{"./menu-item.js":3 4,"./priority-list.js":37}],36:[function(require,module,exports){4404 },{"./menu-item.js":33,"./priority-list.js":36}],35:[function(require,module,exports){ 4456 4405 /** 4457 4406 * wp.media.view.Modal … … 4668 4617 module.exports = Modal; 4669 4618 4670 },{"./focus-manager.js":2 7,"./view.js":50}],37:[function(require,module,exports){4619 },{"./focus-manager.js":26,"./view.js":49}],36:[function(require,module,exports){ 4671 4620 /** 4672 4621 * wp.media.view.PriorityList … … 4768 4717 module.exports = PriorityList; 4769 4718 4770 },{"./view.js": 50}],38:[function(require,module,exports){4719 },{"./view.js":49}],37:[function(require,module,exports){ 4771 4720 /** 4772 4721 * wp.media.view.RouterItem … … 4795 4744 module.exports = RouterItem; 4796 4745 4797 },{"./menu-item.js":3 4}],39:[function(require,module,exports){4746 },{"./menu-item.js":33}],38:[function(require,module,exports){ 4798 4747 /** 4799 4748 * wp.media.view.Router … … 4833 4782 module.exports = Router; 4834 4783 4835 },{"./menu.js":3 5,"./router-item.js":38}],40:[function(require,module,exports){4784 },{"./menu.js":34,"./router-item.js":37}],39:[function(require,module,exports){ 4836 4785 /** 4837 4786 * wp.media.view.Search … … 4882 4831 module.exports = Search; 4883 4832 4884 },{"./view.js": 50}],41:[function(require,module,exports){4833 },{"./view.js":49}],40:[function(require,module,exports){ 4885 4834 /** 4886 4835 * wp.media.view.Settings … … 5003 4952 module.exports = Settings; 5004 4953 5005 },{"./view.js": 50}],42:[function(require,module,exports){4954 },{"./view.js":49}],41:[function(require,module,exports){ 5006 4955 /** 5007 4956 * wp.media.view.Settings.AttachmentDisplay … … 5097 5046 module.exports = AttachmentDisplay; 5098 5047 5099 },{"../settings.js":4 1}],43:[function(require,module,exports){5048 },{"../settings.js":40}],42:[function(require,module,exports){ 5100 5049 /** 5101 5050 * wp.media.view.Sidebar … … 5116 5065 module.exports = Sidebar; 5117 5066 5118 },{"./priority-list.js":3 7}],44:[function(require,module,exports){5067 },{"./priority-list.js":36}],43:[function(require,module,exports){ 5119 5068 /** 5120 5069 * wp.media.view.Spinner … … 5154 5103 module.exports = Spinner; 5155 5104 5156 },{"./view.js": 50}],45:[function(require,module,exports){5105 },{"./view.js":49}],44:[function(require,module,exports){ 5157 5106 /** 5158 5107 * wp.media.view.Toolbar … … 5316 5265 module.exports = Toolbar; 5317 5266 5318 },{"./button.js":21,"./priority-list.js":3 7,"./view.js":50}],46:[function(require,module,exports){5267 },{"./button.js":21,"./priority-list.js":36,"./view.js":49}],45:[function(require,module,exports){ 5319 5268 /** 5320 5269 * wp.media.view.UploaderInline … … 5448 5397 module.exports = UploaderInline; 5449 5398 5450 },{"../view.js": 50,"./status.js":48}],47:[function(require,module,exports){5399 },{"../view.js":49,"./status.js":47}],46:[function(require,module,exports){ 5451 5400 /** 5452 5401 * wp.media.view.UploaderStatusError … … 5467 5416 module.exports = UploaderStatusError; 5468 5417 5469 },{"../view.js": 50}],48:[function(require,module,exports){5418 },{"../view.js":49}],47:[function(require,module,exports){ 5470 5419 /** 5471 5420 * wp.media.view.UploaderStatus … … 5606 5555 module.exports = UploaderStatus; 5607 5556 5608 },{"../view.js": 50,"./status-error.js":47}],49:[function(require,module,exports){5557 },{"../view.js":49,"./status-error.js":46}],48:[function(require,module,exports){ 5609 5558 /** 5610 5559 * wp.media.view.UploaderWindow … … 5718 5667 module.exports = UploaderWindow; 5719 5668 5720 },{"../view.js": 50}],50:[function(require,module,exports){5669 },{"../view.js":49}],49:[function(require,module,exports){ 5721 5670 /** 5722 5671 * wp.media.View -
trunk/src/wp-includes/js/media/views.js
r31399 r31489 4352 4352 }, 4353 4353 4354 render: function() {4355 View.prototype.render.apply( this, arguments );4356 return this;4357 },4358 4359 4354 loadEditor: function() { 4360 4355 var dfd = this.editor.open( this.model.get('id'), this.model.get('nonces').edit, this ); -
trunk/src/wp-includes/js/media/views/edit-image-details.js
r31399 r31489 1 /*globals wp */ 2 1 3 var View = require( './view.js' ), 2 EditImage = require( './edit-image.js' ),4 EditImage = wp.media.view.EditImage, 3 5 Details; 4 6 -
trunk/src/wp-includes/js/media/views/edit-image.js
r31385 r31489 14 14 prepare: function() { 15 15 return this.model.toJSON(); 16 },17 18 render: function() {19 View.prototype.render.apply( this, arguments );20 return this;21 16 }, 22 17
Note: See TracChangeset
for help on using the changeset viewer.