Sha256: 828bf34b570517ebe380c310a9c5d5e7841d3d7cff2249d1407d0eb77c3eba7b

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

$(function() {
  $("#modal-1").on("change", function() {
    if ($(this).is(":checked")) {
      $("body").addClass("modal-open");
    } else {
      $("body").removeClass("modal-open");
    }
  });

  $(".modal-window").on("click", function() {
    $(".modal-state:checked").prop("checked", false).change();
  });

  $(".modal-inner").on("click", function(e) {
    e.stopPropagation();
  });
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
breezeblocks-0.0.4 source/javascripts/breezeblocks/modal.js
breezeblocks-0.0.2 source/javascripts/breezeblocks/modal.js
breezeblocks-0.0.1 source/javascripts/breezeblocks/modal.js
refills-0.1.0 source/javascripts/refills/modal.js