aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/user/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/user/index.php b/views/user/index.php
index a674839..8410575 100644
--- a/views/user/index.php
+++ b/views/user/index.php
@@ -82,12 +82,18 @@
elemOpenLists.classList.add('not-selected');
userArchives.hidden = false;
userLists.hidden = true;
+ location.hash = 'archives';
}
function openLists() {
elemOpenArchives.classList.add('not-selected');
elemOpenLists.classList.remove('not-selected');
userArchives.hidden = true;
userLists.hidden = false;
+ location.hash = 'lists';
+ }
+
+ if (location.hash.slice(1) === 'lists') {
+ openLists();
}
</script>