[buddypress-trac] [BuddyPress] #4816: Add class to whats-new-form re-factor form var to use .closest - global/buddypress.js

buddypress-trac noreply at wordpress.org
Wed Jun 5 03:11:30 UTC 2013


#4816: Add class to whats-new-form re-factor form var to use .closest -
global/buddypress.js
-------------------------------------+---------------------------
 Reporter:  hnla                     |       Owner:  boonebgorges
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  1.8
Component:  Theme                    |     Version:  1.7
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7162"]:
 {{{
 #!CommitTicketReference repository="" revision="7162"
 Use jQuery.closest() to find form when submitting activity update

 Using closest() instead of traversing with parent() makes the JS much more
 flexible, as theme authors are free to change how elements are nested
 without
 breaking the JS.

 Fixes #4816

 Props hnla
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4816#comment:5>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list