mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 05:42:29 +02:00
don't close the sidebar if it is already open with the requested type
This commit is contained in:
1 parent
b0fee62006
commit
6530f8f229
1 file changed
+4
@@ -1192,6 +1192,10 @@ function Commands() //{{{
|
||||
return;
|
||||
}
|
||||
|
||||
// do nothing if the requested sidebar is already open
|
||||
if (document.getElementById("sidebar-title").value == args)
|
||||
return;
|
||||
|
||||
var menu = document.getElementById("viewSidebarMenu")
|
||||
|
||||
for (var i = 0; i < menu.childNodes.length; i++)
|
||||
|
||||
Reference in new issue
Block a user