From 48bc51ca0a5a34bd526a0a2e608f66efa887daeb Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 17 Jun 2024 17:29:07 +0200 Subject: js: show correct initial disclosure widget state Add the class "collapsed" to the html elements defined as not shown in the local storage for the images list sidebar. --- 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 b57fca7..4d69fb6 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -155,6 +155,8 @@ function keepImagesTreeState() { images_tree.each(function () { if (localStorage.getItem(this.id) == 'show') { $(this).collapse('show'); + } else { + $(this).siblings('a').addClass('collapsed'); } }); } -- cgit v1.2.3-18-g5258