Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#3013 closed enhancement (fixed)

Should use jQuery to check classes

Reported by: kayue Owned by:
Priority: normal Milestone: 1.5
Component: Templates Version:
Severity: Keywords: jquery, js
Cc:

Description

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.

Change History (3)

#1 @DJPaul
15 years ago

  • Milestone Awaiting Review1.3
  • Type taskenhancement

#2 @djpaul
15 years ago

  • Resolutionfixed
  • Status newclosed

(In [3812]) Improve javascript class checks. Fixes #3013

#3 @DJPaul
10 years ago

  • Component Appearance - Template PartsTemplates
Note: See TracTickets for help on using tickets.