Skip to content
Snippets Groups Projects
Commit 02787004 authored by Alex Biehl's avatar Alex Biehl Committed by GitHub
Browse files

Correctly remember collapsed sections (#608)

Now the "collapsed" cookie stores which sections have changed state instead of which are collapsed.
parent 393920f1
No related branches found
No related tags found
No related merge requests found
......@@ -52,17 +52,17 @@ function toggleSection(id)
{
var b = toggleShow(document.getElementById("section." + id));
toggleCollapser(document.getElementById("control." + id), b);
rememberCollapsed(id, b);
rememberCollapsed(id);
return b;
}
var collapsed = {};
function rememberCollapsed(id, b)
function rememberCollapsed(id)
{
if(b)
if(collapsed[id])
delete collapsed[id]
else
collapsed[id] = null;
collapsed[id] = true;
var sections = [];
for(var i in collapsed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment