equal
deleted
inserted
replaced
|
1 /** |
|
2 * @output wp-admin/js/widgets/media-audio-widget.js |
|
3 */ |
|
4 |
1 /* eslint consistent-this: [ "error", "control" ] */ |
5 /* eslint consistent-this: [ "error", "control" ] */ |
2 (function( component ) { |
6 (function( component ) { |
3 'use strict'; |
7 'use strict'; |
4 |
8 |
5 var AudioWidgetModel, AudioWidgetControl, AudioDetailsMediaFrame; |
9 var AudioWidgetModel, AudioWidgetControl, AudioDetailsMediaFrame; |
6 |
10 |
7 /** |
11 /** |
8 * Custom audio details frame that removes the replace-audio state. |
12 * Custom audio details frame that removes the replace-audio state. |
9 * |
13 * |
10 * @class AudioDetailsMediaFrame |
14 * @class wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame |
11 * @constructor |
15 * @augments wp.media.view.MediaFrame.AudioDetails |
12 */ |
16 */ |
13 AudioDetailsMediaFrame = wp.media.view.MediaFrame.AudioDetails.extend({ |
17 AudioDetailsMediaFrame = wp.media.view.MediaFrame.AudioDetails.extend(/** @lends wp.mediaWidgets.controlConstructors~AudioDetailsMediaFrame.prototype */{ |
14 |
18 |
15 /** |
19 /** |
16 * Create the default states. |
20 * Create the default states. |
17 * |
21 * |
18 * @returns {void} |
22 * @returns {void} |
38 /** |
42 /** |
39 * Audio widget model. |
43 * Audio widget model. |
40 * |
44 * |
41 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports. |
45 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports. |
42 * |
46 * |
43 * @class AudioWidgetModel |
47 * @class wp.mediaWidgets.modelConstructors.media_audio |
44 * @constructor |
48 * @augments wp.mediaWidgets.MediaWidgetModel |
45 */ |
49 */ |
46 AudioWidgetModel = component.MediaWidgetModel.extend({}); |
50 AudioWidgetModel = component.MediaWidgetModel.extend({}); |
47 |
51 |
48 /** |
52 /** |
49 * Audio widget control. |
53 * Audio widget control. |
50 * |
54 * |
51 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports. |
55 * See WP_Widget_Audio::enqueue_admin_scripts() for amending prototype from PHP exports. |
52 * |
56 * |
53 * @class AudioWidgetModel |
57 * @class wp.mediaWidgets.controlConstructors.media_audio |
54 * @constructor |
58 * @augments wp.mediaWidgets.MediaWidgetControl |
55 */ |
59 */ |
56 AudioWidgetControl = component.MediaWidgetControl.extend({ |
60 AudioWidgetControl = component.MediaWidgetControl.extend(/** @lends wp.mediaWidgets.controlConstructors.media_audio.prototype */{ |
57 |
61 |
58 /** |
62 /** |
59 * Show display settings. |
63 * Show display settings. |
60 * |
64 * |
61 * @type {boolean} |
65 * @type {boolean} |