[wp-trac] [WordPress Trac] #30850: Audio/video previews for media controls in the Customizer
WordPress Trac
noreply at wordpress.org
Mon Feb 16 10:08:19 UTC 2015
#30850: Audio/video previews for media controls in the Customizer
-------------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: javascript
-------------------------------------+-------------------------
Comment (by Aniruddh):
Replying to [comment:8 Fab1en]:
> @westonruter : that's almost this, but the `expanded` event fires when
the section start its expansion. I need an event that fires after the
expansion is finished. In fact, what I need is called
`defaultExpandedArguments.completeCallback` but I can't find a way to set
it only for the proper control. Any hints ?
I think a patch of customizer-controls.js should be added where we change
the `defaultExpandedArguments.completeCallback` from` jQuery.noop` to an
actual function where we trigger an `expanded` event.
This will allow us to do something like this:
{{{#!js
wp.customize.section( theSection ).on( 'expanded', function() {
//do something
} );
}}}
And I think this event can be very useful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30850#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list