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

Commit

Permalink
fixes modal window closing bug
Browse files Browse the repository at this point in the history
Closes #239
  • Loading branch information
kennyadsl authored and teoljungberg committed Jan 31, 2015
1 parent 1e026e6 commit 5d470b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/javascripts/refills/coffeescript/modal.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ ->
$("#modal-1").on "click", ->
$("#modal-1").on "change", ->
if $(this).is(":checked")
$("body").addClass "modal-open"
else
Expand Down
2 changes: 1 addition & 1 deletion source/javascripts/refills/modal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$(function() {
$("#modal-1").on("click", function() {
$("#modal-1").on("change", function() {
if ($(this).is(":checked")) {
$("body").addClass("modal-open");
} else {
Expand Down

0 comments on commit 5d470b2

Please sign in to comment.