From f3fd72b7769961de0ebc6c8bfbd6853b3a8bac4b Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 27 Jun 2009 22:28:25 +1000 Subject: [PATCH] Refactor finder.openPrompt. --- common/content/finder.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/common/content/finder.js b/common/content/finder.js index 843bb1c6..9fd22b52 100644 --- a/common/content/finder.js +++ b/common/content/finder.js @@ -356,17 +356,8 @@ function Finder() //{{{ */ openPrompt: function (mode) { - if (mode == modes.SEARCH_BACKWARD) - { - commandline.open("?", "", modes.SEARCH_BACKWARD); - backwards = true; - } - else - { - commandline.open("/", "", modes.SEARCH_FORWARD); - backwards = false; - } - + backwards = mode == modes.SEARCH_BACKWARD; + commandline.open(backwards ? "?" : "/", mode); // TODO: focus the top of the currently visible screen },