Opened 15 years ago
Closed 15 years ago
#721 closed defect (bug) (fixed)
"selected" class is not removed when changing letter filter [Has Patch]
Reported by: | johnjamesjacoby | Owned by: | Jason_JM |
---|---|---|---|
Milestone: | 1.1 | Priority: | minor |
Severity: | Version: | 1.0 | |
Component: | Keywords: | has-patch | |
Cc: | Jason_JM |
Description
When viewing the directory area of the member theme, if you click on a letter, and then click on another letter, the first letter does not lose its "selected" class.
No patch yet, just noticed it now. I think I noticed it before but never filed a ticket for it.
Attachments (3)
Change History (15)
#4
@
15 years ago
I don't know how to create patches... but here's a tentative fix:
change line 6 of /bp-core/js/directory-members.js from:
jQuery("div#members-list-options a").removeClass("selected");
to
jQuery("#letter-list li a").removeClass("selected");
#5
@
15 years ago
Apply the same fix to "/bp-groups/js/directory-groups.js" and "/bp-blogs/js/directory-blogs.js" as well.
Here's some food for thought:
-It would be neater to consolidate a few jQuery .js files and create a consolidated function, the only variations would be to the AJAX response calls.
#9
@
15 years ago
Splitting out this ticket.
721 will stand for the selected issue while a new ticket will be generated for consolidated js.
#10
@
15 years ago
- Keywords has-patch added; needs-patch removed
- Added line to remove selected class.
- Enhanced js to only remove class where it is defined, existing was doing it for all. May speed things up a little on this page when clicking.
Attached 3 patches.
Milestone Default Member Theme 1.1 deleted