[wp-trac] [WordPress Trac] #21483: Refactor Customizer Upload, Image, and Background Image controls to leverage the media library/modal

WordPress Trac noreply at wordpress.org
Thu Nov 6 21:27:39 UTC 2014


#21483: Refactor Customizer Upload, Image, and Background Image controls to
leverage the media library/modal
-------------------------------------------------+-------------------------
 Reporter:  jjonesftw                            |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  4.1
Component:  Customize                            |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:  ui,
  feedback ui-feedback ux-feedback               |  javascript
-------------------------------------------------+-------------------------

Comment (by ericlewis):

 `wp.customize.UploadControl.rerender()` can be dropped in lieu of clearing
 out the container ( `.html('')` ) in wp.customize.Control.render, and
 using event delegation on the control (`$container.on( 'click', '.thing'
 ... )`) rather than binding directly to the elements.

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


More information about the wp-trac mailing list