[wp-trac] [WordPress Trac] #28095: wpLink modal no longer triggers open event

WordPress Trac noreply at wordpress.org
Sun Jul 27 21:58:34 UTC 2014


#28095: wpLink modal no longer triggers open event
--------------------------+-------------------------
 Reporter:  bradyvercher  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Editor        |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by azaozz):

 * milestone:  3.9.2 => 4.0


Comment:

 Sounds good. Maybe better if the event is fired on the document or fire
 `triggerHandler` (no propagation) on the wrapper?

 {{{
 open: function( editorId ) {
 ...
 $( document ).trigger( 'wplink-open', inputs.wrap );
 }

 close: function() {
 ...
 $( document ).trigger( 'wplink-close', inputs.wrap );
 }
 }}}

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


More information about the wp-trac mailing list