[buddypress-trac] [BuddyPress Trac] #6029: Compatibility with easy fancybox plugin

buddypress-trac noreply at wordpress.org
Fri Dec 5 16:57:15 UTC 2014


#6029: Compatibility with easy fancybox plugin
---------------------------+------------------------------
 Reporter:  alex80ks       |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Core           |     Version:  2.1
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |
---------------------------+------------------------------

Comment (by imath):

 the pastebins are triggering a js event 'post-load' when the content is
 updated after a read-more click on a single activity (line 17) or after
 new {{{li}}}s has been appended into the stream (line 30).

 I think the plugin is waiting for this 'post-load' event because of this
 [https://plugins.trac.wordpress.org/browser/easy-fancybox/trunk/easy-
 fancybox-class.php#L535 line]

 Because the content is Ajaxed created, he requires us to trigger this
 event. But i think the plugin author can fix this alone. I'm thinking of
 something like :
 {{{
 jQuery( 'div.activity' ).on( 'click', 'img', function( e ) { // do stuff
 here } );
 }}}
 or more globally
 {{{
 jQuery( 'body' ).on( 'click', 'img', function(e) { // do stuff here } );
 }}}

 NB : not enough into it to be positive at 100% ;)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6029#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list