mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 16:57:57 +01:00
don't close the sidebar if it is already open with the requested type
This commit is contained in:
@@ -1123,6 +1123,10 @@ function Commands() //{{{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do nothing if the requested sidebar is already open
|
||||||
|
if (document.getElementById("sidebar-title").value == args)
|
||||||
|
return;
|
||||||
|
|
||||||
var menu = document.getElementById("viewSidebarMenu")
|
var menu = document.getElementById("viewSidebarMenu")
|
||||||
|
|
||||||
for (var i = 0; i < menu.childNodes.length; i++)
|
for (var i = 0; i < menu.childNodes.length; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user