Skip to content

Instantly share code, notes, and snippets.

@eccentricpixel
Created December 28, 2014 07:18
Show Gist options
  • Save eccentricpixel/464d1ccf36128078f2f3 to your computer and use it in GitHub Desktop.
Save eccentricpixel/464d1ccf36128078f2f3 to your computer and use it in GitHub Desktop.
Fix for forcing close action of Foundation 5 reveal modals. The .close-reveal-modal doesn't always work in 5.
// fix for forcing close of foundation modals with close button
$('.close-reveal-modal').on('click tap touchstart', function() {
return $('[data-reveal]').foundation('reveal', 'close');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment