Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move js event handler for comments to another partial
The 'comment/_content' partial is rendered multiple times. Therefore the handler would be registered again and again. By moving it to the comment show view and wrapping it into a document ready statement we ensure that it's called only once, and for any comment img element in the DOM. Follow up of c2ec9cc.
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters