Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Commit 5d470b2

Browse files
kennyadslteoljungberg
authored andcommitted
fixes modal window closing bug
Closes #239
1 parent 1e026e6 commit 5d470b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/javascripts/refills/coffeescript/modal.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$ ->
2-
$("#modal-1").on "click", ->
2+
$("#modal-1").on "change", ->
33
if $(this).is(":checked")
44
$("body").addClass "modal-open"
55
else

source/javascripts/refills/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$(function() {
2-
$("#modal-1").on("click", function() {
2+
$("#modal-1").on("change", function() {
33
if ($(this).is(":checked")) {
44
$("body").addClass("modal-open");
55
} else {

0 commit comments

Comments
 (0)