Menu icon Foundation
Foundation 6 reveal modal

Hi,

i've updated my asp.net 5 web application, wich has used Foundation 5 to the new Foundation for Sites 6.
On my site i need to open and close some reveal modals from javascript (angular.js).
With Foundation 5 i used $('#reveal').foundation('reveal', 'open'); wich works fine.
But after i updgraded to new Foundation this code does'nt work anymore.
I've also tried this --> $('#reveal').foundation('open'); but without success.

Any ideas?

foundation 6reveal modal

Hi,

i've updated my asp.net 5 web application, wich has used Foundation 5 to the new Foundation for Sites 6.
On my site i need to open and close some reveal modals from javascript (angular.js).
With Foundation 5 i used $('#reveal').foundation('reveal', 'open'); wich works fine.
But after i updgraded to new Foundation this code does'nt work anymore.
I've also tried this --> $('#reveal').foundation('open'); but without success.

Any ideas?

This post has been closed. No new replies can be added.

Rodrigo López over 3 years ago

Function was not included on min.js for some reason. i used the no minimized version and it worked like this

var elem = new Foundation.Reveal($('#delModal'));
elem.open();

Michael Hocke over 3 years ago

Updated from 6.0.0-alpha1 to 6.0.1 and $('#reveal').foundation('open'); works fine.

ty