Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#1042 closed defect (bug) (fixed)

Directory letter filter ajax calls use blind/brute force selectors.

Reported by: mrmaz's profile MrMaz Owned by:
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords: ajax, directories, directory, jQuery, tested, has-patch
Cc: Jason_JM

Description

When clicking on a letter filter in any of the three directories (members, groups, blogs) an Ajax call is fired for all three directory filter actions instead of just the action for the current directory.

The attached patch corrects the problem by prefixing the ul#letter-list element jQuery look up with a parent div (which already existed) that will make each call unique to a directory page.

Attachments (1)

ajax.js.patch (1.2 KB) - added by MrMaz 15 years ago.
patch for bp-themes/bp-sn-parent/_inc/js/ajax.js

Download all attachments as: .zip

Change History (3)

@MrMaz
15 years ago

patch for bp-themes/bp-sn-parent/_inc/js/ajax.js

#1 @Jason_JM
15 years ago

  • Cc Jason_JM added
  • Keywords ajax directories directory jQuery tested has-patch added
  • Milestone set to 1.1
  • Summary changed from Patch to fix directory letter filters ajax calls to Directory letter filter ajax calls use blind/brute force selectors.

Tested, it seems to work for me. However, I am in the middle of a theme re-build.

#2 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1914]) Default theme JS updates. Fixes #1042

Note: See TracTickets for help on using tickets.