Menu icon Foundation

My Posts

No Content

My Comments

Nimrod A commented on Oliv's post about 5 years

Ben's solution worked for me, but i had to add the listener to the 'touchstart' event.
Thanks, Ben!

Final code (JS):

$(document).on('click tap touchstart', '.reveal-modal-bg', function() {
    return $('[data-reveal]').foundation('reveal', 'close');
}); 

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Oliv's post about 5 years

Ben's solution worked for me, but i had to add the listener to the 'touchstart' event.
Thanks, Ben!

Final code (JS):

$(document).on('click tap touchstart', '.reveal-modal-bg', function() {
    return $('[data-reveal]').foundation('reveal', 'close');
}); 

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content