From d490d12c43ca01a73917ee30909699466589d249 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 22 Sep 2007 14:51:42 +0000 Subject: [PATCH] don't close the sidebar if it is already open with the requested type --- chrome/content/vimperator/commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 2d2ab225..d3f0b838 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -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++)