[buddypress-trac] [BuddyPress] #3013: Should use jQuery to check classes

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Jan 19 07:30:21 UTC 2011


#3013: Should use jQuery to check classes
------------------------+-----------------------------
 Reporter:  kayue       |      Owner:
     Type:  task        |     Status:  new
 Priority:  normal      |  Milestone:  Awaiting Review
Component:  Theme       |    Version:
 Keywords:  jquery, js  |
------------------------+-----------------------------
 in defualt_theme/_inc/global.js , line 315

 {{{
 if ( 'activity-comments' !== form_parent.attr('class') ) {
 }}}

 should be written as

 {{{
 if ( !form_parent.hasClass('activity-comments') ) {
 }}}

 The reason for this is to avoid javascript from malfunctioning after
 people like me add an additional class.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3013>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list