Commit 3320e3cf authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

sidebar shows when preferences clicked

parent ae8d1ef0
......@@ -79,7 +79,7 @@
</div>
<a id="sidebar-collapse" class="m-2" data-toggle="collapse" data-target="#sidebar">
<i class="fa fa-angle-double-left rotate-transition" onclick="rotate(this)"></i>
<i class="fa fa-angle-double-left rotate-transition" id="sidebar-col-icon" onclick="rotate(this)"></i>
</a>
<!-- Canvas/Pd Windows -->
......@@ -505,11 +505,13 @@
//Rotate Icon
function rotate(elmnt) {
var cons_head = elmnt.id === "console-heading";
if (cons_head) {
document.getElementById("open-icon").classList.toggle("rotate");
} else {
elmnt.classList.toggle("rotate");
switch (elmnt.id) {
case "console-heading":
document.getElementById("open-icon").classList.toggle("rotate");
break;
case "sidebar-col-icon":
elmnt.classList.toggle("rotate");
break;
}
}
......
......@@ -5728,6 +5728,9 @@ function open_prefs() {
} else {
dialog_raise("prefs");
}
// show sidebar
$("#sidebar").collapse("show");
$("#sidebar-col-icon").removeClass("rotate");
}
exports.open_prefs = open_prefs;
......
Markdown is supported
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