이 비교의 나머지 부분을 불러오는 중입니다.

media-views

생성일 비교 결과 만료 없음
11 삭제
698 행
9 추가
698 행
/*! This file is auto-generated */
/*! This file is auto-generated */
(() => {
(() => {
var i = {
var i = {
7145: (e) => {
7145: (e) => {
var s = wp.media.model.Selection,
var s = wp.media.model.Selection,
o = wp.media.controller.Library,
o = wp.media.controller.Library,
t = o.extend({
t = o.extend({
defaults: _.defaults(
defaults: _.defaults(
{
{
multiple: 'add',
multiple: 'add',
filterable: 'uploaded',
filterable: 'uploaded',
priority: 100,
priority: 100,
syncSelection: !1,
syncSelection: !1,
},
},
o.prototype.defaults
o.prototype.defaults
),
),
initialize: function () {
initialize: function () {
var e = this.get('collectionType');
var e = this.get('collectionType');
'video' === this.get('type') && (e = 'video-' + e),
'video' === this.get('type') && (e = 'video-' + e),
this.set('id', e + '-library'),
this.set('id', e + '-library'),
this.set('toolbar', e + '-add'),
this.set('toolbar', e + '-add'),
this.set('menu', e),
this.set('menu', e),
this.get('library') ||
this.get('library') ||
this.set(
this.set(
'library',
'library',
wp.media.query({ type: this.get('type') })
wp.media.query({ type: this.get('type') })
),
),
o.prototype.initialize.apply(this, arguments);
o.prototype.initialize.apply(this, arguments);
},
},
activate: function () {
activate: function () {
var e = this.get('library'),
var e = this.get('library'),
t = this.get('editLibrary'),
t = this.get('editLibrary'),
i = this.frame
i = this.frame
.state(this.get('collectionType') + '-edit')
.state(this.get('collectionType') + '-edit')
.get('library');
.get('library');
t && t !== i && e.unobserve(t),
t && t !== i && e.unobserve(t),
(e.validator = function (e) {
(e.validator = function (e) {
return (
return (
!!this.mirroring.get(e.cid) &&
!!this.mirroring.get(e.cid) &&
!i.get(e.cid) &&
!i.get(e.cid) &&
s.prototype.validator.apply(this, arguments)
s.prototype.validator.apply(this, arguments)
);
);
}),
}),
e.reset(e.mirroring.models, { silent: !0 }),
e.reset(e.mirroring.models, { silent: !0 }),
e.observe(i),
e.observe(i),
this.set('editLibrary', i),
this.set('editLibrary', i),
o.prototype.activate.apply(this, arguments);
o.prototype.activate.apply(this, arguments);
},
},
});
});
e.exports = t;
e.exports = t;
},
},
8612: (e) => {
8612: (e) => {
var t = wp.media.controller.Library,
var t = wp.media.controller.Library,
n = wp.media.view.l10n,
n = wp.media.view.l10n,
r = jQuery,
r = jQuery,
i = t.extend({
i = t.extend({
defaults: {
defaults: {
multiple: !1,
multiple: !1,
sortable: !0,
sortable: !0,
date: !1,
date: !1,
searchable: !1,
searchable: !1,
content: 'browse',
content: 'browse',
describe: !0,
describe: !0,
dragInfo: !0,
dragInfo: !0,
idealColumnWidth: 170,
idealColumnWidth: 170,
editing: !1,
editing: !1,
priority: 60,
priority: 60,
SettingsView: !1,
SettingsView: !1,
syncSelection: !1,
syncSelection: !1,
},
},
initialize: function () {
initialize: function () {
var e = this.get('collectionType');
var e = this.get('collectionType');
'video' === this.get('type') && (e = 'video-' + e),
'video' === this.get('type') && (e = 'video-' + e),
this.set('id', e + '-edit'),
this.set('id', e + '-edit'),
this.set('toolbar', e + '-edit'),
this.set('toolbar', e + '-edit'),
this.get('library') ||
this.get('library') ||
this.set('library', new wp.media.model.Selection()),
this.set('library', new wp.media.model.Selection()),
this.get('AttachmentView') ||
this.get('AttachmentView') ||
this.set(
this.set(
'AttachmentView',
'AttachmentView',
wp.media.view.Attachment.EditLibrary
wp.media.view.Attachment.EditLibrary
),
),
t.prototype.initialize.apply(this, arguments);
t.prototype.initialize.apply(this, arguments);
},
},
activate: function () {
activate: function () {
this.get('library').props.set('type', this.get('type')),
this.get('library').props.set('type', this.get('type')),
this.get('library').observe(wp.Uploader.queue),
this.get('library').observe(wp.Uploader.queue),
this.frame.on(
this.frame.on(
'content:render:browse',
'content:render:browse',
this.renderSettings,
this.renderSettings,
this
this
),
),
t.prototype.activate.apply(this, arguments);
t.prototype.activate.apply(this, arguments);
},
},
deactivate: function () {
deactivate: function () {
this.get('library').unobserve(wp.Uploader.queue),
this.get('library').unobserve(wp.Uploader.queue),
this.frame.off(
this.frame.off(
'content:render:browse',
'content:render:browse',
this.renderSettings,
this.renderSettings,
this
this