Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Resolves #1472 by adjusting the "click" event handler for the ModalVi…
Browse files Browse the repository at this point in the history
…ewer (as discovered by @tpendragon)
  • Loading branch information
jrgriffiniii committed Sep 5, 2017
1 parent 15185ef commit b641567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/modal_viewer.es6
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default class ModalViewer {
constructor() {
this.element = $(this.selector)
$("a", this.element).unbind("click")
$("a", this.selector).click((event) => { event.preventDefault() })
$("body").on("click", this.selector, (event) => {
event.stopPropagation()
event.preventDefault()
Expand Down

0 comments on commit b641567

Please sign in to comment.