[buddypress-trac] [BuddyPress Trac] #6508: jq('.item-list-tabs li.selected') isn't always defined on directories

buddypress-trac noreply at wordpress.org
Tue Jun 16 20:55:21 UTC 2015


#6508: jq('.item-list-tabs li.selected') isn't always defined on directories
----------------------------------------+-----------------------------
 Reporter:  dcavins                     |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Appearance - Template Pack  |    Version:  2.3.1
 Severity:  normal                      |   Keywords:  has-patch
----------------------------------------+-----------------------------
 I noticed that searching on member and group directories was returning the
 error:
 {{{
 TypeError: jq(...).attr(...) is undefined
 -> css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' );
 -> buddypr...r=2.3.0 (line 818, col 12)
 }}}

 The cause is that often no tab is selected. My proposed fix falls back on
 the first tab if no tab is selected.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6508>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list