mirror of https://git.48k.eu/ogcp
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.master
parent
a7423d2943
commit
48bc51ca0a
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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=8"></script>
|
||||
<script src="{{ url_for('static', filename='js/ogcp.js') }}?v=9"></script>
|
||||
|
||||
<script>
|
||||
// error messages
|
||||
|
|
Loading…
Reference in New Issue