From 37ae1bc5a218d0901431f6ab319f766b105c0773 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 13 Jun 2024 12:29:21 +0200 Subject: ogcp: add disclosure widget to sidebar Add cache buster to soleta.css in base.html to have control over cache expirity. Bump soleta.css version to ensure browser does not used older (cached) version. Add CSS rules to show a disclosure widget in the sidebar. Show center checkboxes as disabled in the commands view sidebar for visual consistency. Add class "collapsed" to the proper HTML components to keep a proper state on page reload. --- ogcp/static/js/ogcp.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ogcp/static/js/ogcp.js') diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index a0bbed1..5c15b30 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -193,6 +193,8 @@ function keepScopesTreeState() { scopes_tree.each(function () { if (localStorage.getItem(this.id) == 'show') { $(this).collapse('show'); + } else { + $(this).siblings('a').addClass('collapsed'); } }); } -- cgit v1.2.3-18-g5258