summaryrefslogtreecommitdiffstats
path: root/ogcp/static/js
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-13 12:29:21 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-14 09:25:17 +0200
commit37ae1bc5a218d0901431f6ab319f766b105c0773 (patch)
tree3568f928658cbf5bd9c3a6fdbf6b5180d84f3a9f /ogcp/static/js
parent272a5067ad6bc4a9b5e4a401ea7625e71d6914af (diff)
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.
Diffstat (limited to 'ogcp/static/js')
-rw-r--r--ogcp/static/js/ogcp.js2
1 files changed, 2 insertions, 0 deletions
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');
}
});
}