Created
April 20, 2016 16:27
-
-
Save krishan/8afab9d957bc9aa135a2d528e8d34c3a to your computer and use it in GitHub Desktop.
Disable Turbolinks while App is running inside Scrivito
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if scrivito_user %> | |
<%# opt out of turbolinks when running inside Scrivito %> | |
<body data-no-turbolink> | |
<% else %> | |
<body> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (window.parent && window.parent.scrivito) { | |
// remove Turbolinks library if app is running inside Scrivito, | |
// so the Scrivito UI will not show a warning dialog. | |
Turbolinks = undefined; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment