Menu icon Foundation

My Posts

No Content

My Comments

Gian Marco Prazzoli commented on Samuel Stacey's post over 5 years

Got the same behaviour, seems to me that the main problem is a conflict with rails 4 turbolinks. I tried to disable them in a single page and the resized menu does indeed work.

EDIT: maybe I'm onto something: I monkey-patched the

 $( function() {
        $(document).foundation();
});

to:

 window.onload = function() {
        $(document).foundation();
};

And it seems that the menu is now working even on pages with turbolinks. Checking.

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Samuel Stacey's post over 5 years

Got the same behaviour, seems to me that the main problem is a conflict with rails 4 turbolinks. I tried to disable them in a single page and the resized menu does indeed work.

EDIT: maybe I'm onto something: I monkey-patched the

 $( function() {
        $(document).foundation();
});

to:

 window.onload = function() {
        $(document).foundation();
};

And it seems that the menu is now working even on pages with turbolinks. Checking.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content