From f85c61df993dddee233ead7b6c9e136d9d9fa742 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 16 Sep 2024 12:18:29 +0200 Subject: templates: fix initial repos disclosure widget status Show the proper state of the disclosure widget when a repo starts as collapsed. --- ogcp/static/js/ogcp.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ogcp/static/js') 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'); } }); } -- cgit v1.2.3-18-g5258