#3013 closed enhancement (fixed)
Should use jQuery to check classes
Reported by: | kayue | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Templates | 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)
Note: See
TracTickets for help on using
tickets.
(In [3812]) Improve javascript class checks. Fixes #3013