From 6530f8f2293b8ccf8acbaa1ba43be7c59e236ed5 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 21 Sep 2007 11:17:28 +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 a2d069cb..da146378 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -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++)