diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-16 12:18:29 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-16 12:18:29 +0200 |
commit | f85c61df993dddee233ead7b6c9e136d9d9fa742 (patch) | |
tree | 3866f08d09fbfcebb63a0e0f99e5419572d72850 | |
parent | 65d2d75ddb3670b39fdca0d67d87a8f48b797059 (diff) |
templates: fix initial repos disclosure widget status
Show the proper state of the disclosure widget when a repo starts
as collapsed.
-rw-r--r-- | ogcp/static/js/ogcp.js | 2 | ||||
-rw-r--r-- | ogcp/templates/base.html | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index 9e6fd4f..362aed1 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -187,6 +187,8 @@ function keepReposTreeState() { repos_tree.each(function () { if (localStorage.getItem(this.id) == 'show') { $(this).collapse('show'); + } else { + $(this).siblings('a').addClass('collapsed'); } }); } diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index e924fe1..b9042fd 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -111,7 +111,7 @@ <!-- ChartJS --> <script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script> - <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=16"></script> + <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=17"></script> <script> // error messages |