Commit 10ea846a authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

QueryMode - Fix Open filter persisting status (FIX #202)

parent d86dcd60
Pipeline #31991 failed with stages
in 13 minutes and 24 seconds
......@@ -221,11 +221,11 @@ function create_bootstrap_multiselect_from_applicant(source) {
}
function openNav() {
document.getElementById("mySidenav").style.width = "300px";
document.getElementById("main").style.marginLeft = "0px";
localStorage.setItem('mySidenav', 'true');
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0px";
document.getElementById("main").style.marginLeft = "0px";
localStorage.setItem('mySidenav', 'false');
}
$(document).ready(function () {
......
......@@ -36,12 +36,6 @@
<div class="container-fluid">
<div class="m-2">
</div>
<script>
localStorage.setItem('mySidenav', 'true');
if (localStorage.getItem('mySidenav') == 'true') {
openNav();
}
</script>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="close_btn" onclick="closeNav()">&times; Close</a>
<h1 class="side_menu_title">
......@@ -209,7 +203,11 @@
<span class="open_filters_btn">
<span id="mySidenavBtn" onclick="openNav()"><a><i class="fas fa-filter"></i> Open filters</a></span>
</span>
<script>
if (localStorage.getItem('mySidenav') == 'true') {
openNav();
}
</script>
<div class="m-2 d-flex justify-content-between">
<span
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment