Skip to content

Commit

Permalink
ZMI: include zmi.localstorage.api.js using js subscriber
Browse files Browse the repository at this point in the history
Using this approach we serve a resource relative to the path where user
is authenticated.
  • Loading branch information
perrinjerome committed Apr 12, 2024
1 parent 67df7ab commit fd73b7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/App/dtml/menu.dtml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

</main>

<script src="&dtml-BASEPATH1;/++resource++zmi/zmi.localstorage.api.js"></script>
<script>
function menu_resize(init) {
var key = "ZMI.manage_menu.width";
Expand Down
1 change: 1 addition & 0 deletions src/zmi/styles/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ def js_paths(context):
'/++resource++zmi/bootstrap-4.6.0/bootstrap.bundle.min.js',
'/++resource++zmi/ace.ajax.org/ace.js',
'/++resource++zmi/zmi_base.js',
'/++resource++zmi/zmi.localstorage.api.js',
)
)

0 comments on commit fd73b7d

Please sign in to comment.