[wp-trac] [WordPress Trac] #43386: render-partials-init similar to render-partials-response in customiser selective refresh.

WordPress Trac noreply at wordpress.org
Thu Feb 22 18:51:14 UTC 2018


#43386: render-partials-init similar to render-partials-response in customiser
selective refresh.
-------------------------+---------------------------------------------
 Reporter:  gandham      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  4.9.4
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  ui, javascript, administration
-------------------------+---------------------------------------------

Comment (by gandham):

 I think we can override the preparePlacement method and do the UI changes
 there, but still if we can fire an event in the prepare placement method
 it would be useful.

 {{{

 /**
                  * Prepare container for selective refresh.
                  *
                  * @since 4.5.0
                  *
                  * @param {Placement} placement
                  */
                 preparePlacement: function( placement ) {
                         $( placement.container ).addClass( 'customize-
 partial-refreshing' );
                         self.trigger( 'partial-content-initiated',
 placement );
                 },

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43386#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list