#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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3812]) Improve javascript class checks. Fixes #3013