According to foundation 4 documentation, the way to show a reveal modal now from the modal itself is by calling:
$('#modal').foundation('reveal','open');

STARTER template.php still uses the old .reveal() method which returns "Object does not support this method".

Comments

kevinquillen’s picture

Reveal is a little bit PITA particularly if you want to use dynamic modals (i.e. content that is NOT part of the original DOM when loaded).

I have a JS extension on Drupal.js to handle instances like these, such as using a custom FormAPI that uses AJAX form elements to append info to the DOM and call them on the fly with Reveal through custom Drupal ajax command callbacks.

shadysamir’s picture

Great, but meanwhile STARTER is using broken code

alexweber’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Simple patch attached that updates the reveal() calls.

kevinquillen’s picture

Status: Needs review » Fixed

Patch looks good. Committing to dev.

alexweber’s picture

Awesome, thanks!

shadysamir’s picture

Thanks everyone

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.