Making WordPress.org

Opened 9 years ago

Closed 9 years ago

#1745 closed defect (bug) (fixed)

Voting is not using ajax on dynamically added links

Reported by: keesiemeijer's profile keesiemeijer Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch
Cc:

Description

Links are added and removed when voting on user contributed notes. The voting event listener is not added to the dynamically added links.

Steps to reproduce:

  1. vote up - Ajax is used to count the vote.
  2. vote down - The page is redirected to the current page

Attachments (1)

1745.patch (626 bytes) - added by keesiemeijer 9 years ago.
Add event listener to parent element

Download all attachments as: .zip

Change History (2)

@keesiemeijer
9 years ago

Add event listener to parent element

#1 @coffee2code
9 years ago

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

In 3561:

developer.wordpress.org: Extend voting event listener to work for dynamically added vote links.

Props keesiemeijer.
Fixes #1745.

Note: See TracTickets for help on using tickets.