-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bookmarkable URLs with sitemap-menu frameset
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<!-- common/zmi_html_foot --> | ||
<tal:block tal:repeat="src python:list(request.get('ZMI_LIBS_JS',[]))"> | ||
<script type="text/javascript" charset="UTF-8" tal:condition="src" tal:attributes="src src"></script> | ||
</tal:block> | ||
<script tal:repeat="src python:list(request.get('ZMI_LIBS_JS',[]))" type="text/javascript" charset="UTF-8" tal:attributes="src src"></script> | ||
<script tal:condition="python: '/manage_menu' not in request.get('URL','') and request.get('method','') == 'GET'"> | ||
// Helper for Bookmarkable URLs in case of Sitemap Menu Frameset | ||
if (window.parent.frames.manage_menu != undefined) { | ||
window.parent.history.replaceState('','Main', window.location.href); | ||
// console.log('common.zmi_html_foot: executed history.replaceState()') | ||
}; | ||
</script> | ||
<!-- /common/zmi_html_foot --> |