Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You can also disable certain javascript while in edit mode by wrapping them in a php conditional.
- <?php
- $page = Page::getCurrentPage();
- if(!$page->isEditMode()) {
- ?>
- <script type="text/javascript">$(function() { alert('Not Edit Mode'); });</script>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment