diff options
author | Camil Staps | 2015-03-19 22:32:18 +0100 |
---|---|---|
committer | Camil Staps | 2015-03-19 22:32:18 +0100 |
commit | a256f7bf12a4c65cbb7ce4551c7858454976ff3c (patch) | |
tree | ff9769ea09fea013855ff19aa17b895d65a62471 /include | |
parent | Collapse menu (diff) |
Collapsing is remembered during a session
Diffstat (limited to 'include')
-rw-r--r-- | include/ajax-collapse.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ajax-collapse.php b/include/ajax-collapse.php new file mode 100644 index 0000000..e49c6fd --- /dev/null +++ b/include/ajax-collapse.php @@ -0,0 +1,8 @@ +<?php +$collapsed = true; +if ($_REQUEST['setting'] !== 'true') + $collapsed = false; + +$_SESSION['ba-collapse'] = $collapsed; + +echo $collapsed;
\ No newline at end of file |