Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a way to make callbacks work with the cancel element
When cancel is selected, there is no corresponding input element, which means that this is set to null in the callback function. The "link" parameter to the callback function is set to the first 'a' child of null, which translates to the first link on the page. Fix the link parameter, by setting a rater-cancel-# (where # is the rater serial number) class on the cancel element, so that we can identify the element later in the select function.
- Loading branch information
8261d7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea. Thanks for sharing!