templates: fix initial repos disclosure widget status

Show the proper state of the disclosure widget when a repo starts
as collapsed.
master
Alejandro Sirgo Rica 2024-09-16 12:18:29 +02:00
parent 65d2d75ddb
commit f85c61df99
2 changed files with 3 additions and 1 deletions

View File

@ -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');
}
});
}

View File

@ -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