From 12df37b179678dbfe4ed11e6028fba259549ab11 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 8 May 2003 13:54:44 +1000 Subject: [PATCH] Don't attempt to show empty hint text. --HG-- extra : rebase_source : dd00a53b707216ec95eb63684bdfef140793f95b --- common/content/hints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/hints.js b/common/content/hints.js index edb9ed67..bb9505a3 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -605,7 +605,7 @@ var HintSession = Class("HintSession", CommandMode, { text.push(UTF8(hint.elem.checked ? "⊙" : "○")); else if (hint.elem.type === "checkbox") text.push(UTF8(hint.elem.checked ? "☑" : "☐")); - if (hint.showText) + if (hint.showText && !/^\s*$/.test(hint.text)) text.push(hint.text.substr(0, 50)); hint.span.setAttribute("text", str + (text.length ? ": " + text.join(" ") : ""));