Opened 13 years ago
Closed 12 years ago
#1905 closed defect (bug) (fixed)
Subscribe/Favourite ajax links issue
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Component - Forums | Keywords: | has-patch needs-testing |
Cc: | jmdodd@…, wordpress@… |
Description
Topic Subscribe and Favorite ajax links stop changing after two clicks.
EG:
Click 1 -> Subscribe changes to Unsubscribe
Click 2 -> Unsubscribe changes to Subscribe
Click 3 -> Links stays on Subscribe but the user does actually subscribe to the topic and visible in profile
Can be replicated on new bbPress.org website with 2.1 forums.
Attachments (1)
Change History (17)
#4
follow-up:
↓ 8
@
12 years ago
There's a nesting of callbacks. Removing the last line of subsLinkSetup in templates/default/js/topic.js fixes this issue. Not sure what that line is intending to do.
The line is:
subscriptionToggle.get(0).wpList.process( subscriptionToggle );
#7
@
12 years ago
Seems related to http://core.trac.wordpress.org/ticket/21152
#8
in reply to:
↑ 4
@
12 years ago
Ok, researched a bit more. For wp 3.4.x this in fact fixes the issue:
Removing the last line of subsLinkSetup in templates/default/js/topic.js fixes this issue.
subscriptionToggle.get(0).wpList.process( subscriptionToggle );
But due to http://core.trac.wordpress.org/changeset/22396 this will probably break again in 3.5
#11
@
12 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to rethink for WordPress 3.5. Maybe we can do this without relying on wp-lists.
#12
follow-up:
↓ 13
@
12 years ago
Never got to play with wpList, but if you're ok with going pure wp_ajax_ I'd gladly take a stab at it
First click fires an ajax call. Second click fires an ajax call. Third click fires 2 ajax calls, and from there it doubles with each click.
After 5 clicks: http://screenshots.mzaweb.com/hJTq