Menu icon Foundation

Developer | Chicago, IL

My Posts


My Comments

Brandon Parker commented on Brandon Parker's post almost 5 years

Until there's a better solution I have to keep this project moving so I've manually done the following since the close never works. I lose the pretty transitions but at least I have a working modal that can be closed.

$('div#gallery-modal a.close-reveal-modal').on('click', function(e) {
    e.preventDefault();
    $('div#gallery-modal').foundation('reveal', 'close'); // this never works
    $('div#gallery-modal').removeClass('open').hide().css('visibility', 'hidden').css('top', '6.25rem').css('opacity', 0);
    $('div.reveal-modal-bg').hide();
  });

Brandon Parker commented on Brandon Parker's post almost 5 years

Hello,

Has anyone else seen this? This is an annoying bug that I'm sure is something very simple. Any help is greatly appreciated.

Thanks!

Posts Followed


Following

    No Content

Followers

My Posts

My Comments

You commented on Brandon Parker's post almost 5 years

Until there's a better solution I have to keep this project moving so I've manually done the following since the close never works. I lose the pretty transitions but at least I have a working modal that can be closed.

$('div#gallery-modal a.close-reveal-modal').on('click', function(e) {
    e.preventDefault();
    $('div#gallery-modal').foundation('reveal', 'close'); // this never works
    $('div#gallery-modal').removeClass('open').hide().css('visibility', 'hidden').css('top', '6.25rem').css('opacity', 0);
    $('div.reveal-modal-bg').hide();
  });

You commented on Brandon Parker's post almost 5 years

Hello,

Has anyone else seen this? This is an annoying bug that I'm sure is something very simple. Any help is greatly appreciated.

Thanks!

Posts Followed

Following

  • No Content

Followers

  • No Content