1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 18:27:58 +01:00

don't close the sidebar if it is already open with the requested type

This commit is contained in:
Doug Kearns
2007-09-22 14:51:42 +00:00
parent 145c854b5e
commit d490d12c43

View File

@@ -1123,6 +1123,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++)