Skip to content

Commit

Permalink
Bookmarkable URLs with sitemap-menu frameset
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Sep 16, 2023
1 parent 353f5e5 commit dd5b784
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Products/zms/plugins/www/zmi.core.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ header.navbar-nav .navbar-brand .slogan {
}
header.navbar-nav ul.navbar-nav {
background: #354f67;
flex-wrap: nowrap;
}
/* Show Debug Mode: ZMS.debug=1 */
header.zmsdebug .navbar-brand .slogan {
Expand Down
11 changes: 8 additions & 3 deletions Products/zms/zpt/common/zmi_html_foot.zpt
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 -->

0 comments on commit dd5b784

Please sign in to comment.