From 98a02ecf5b4c8022b87c8ad088244f4952d80951 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 26 Jul 2010 16:14:32 -0300 Subject: [PATCH] Bug 581241 - Add a Filter placeholder string in the Web Console, r=gavin, a=johnath --- toolkit/components/console/hudservice/HUDService.jsm | 1 + toolkit/locales/en-US/chrome/global/headsUpDisplay.properties | 1 + 2 files changed, 2 insertions(+) diff --git a/toolkit/components/console/hudservice/HUDService.jsm b/toolkit/components/console/hudservice/HUDService.jsm index cbcd1727098..78f69cbea82 100644 --- a/toolkit/components/console/hudservice/HUDService.jsm +++ b/toolkit/components/console/hudservice/HUDService.jsm @@ -1807,6 +1807,7 @@ HeadsUpDisplay.prototype = { this.filterBox = this.makeXULNode("textbox"); this.filterBox.setAttribute("class", "hud-filter-box"); this.filterBox.setAttribute("hudId", this.hudId); + this.filterBox.setAttribute("placeholder", this.getStr("stringFilter")); this.filterClearButton = this.makeXULNode("button"); this.filterClearButton.setAttribute("class", "hud-filter-clear"); diff --git a/toolkit/locales/en-US/chrome/global/headsUpDisplay.properties b/toolkit/locales/en-US/chrome/global/headsUpDisplay.properties index 308d8c8d7be..74b13cb6933 100644 --- a/toolkit/locales/en-US/chrome/global/headsUpDisplay.properties +++ b/toolkit/locales/en-US/chrome/global/headsUpDisplay.properties @@ -33,4 +33,5 @@ tipGlobal=Toggle Global Message logging localConsole=Local Console btnClear=Clear Console tipClear=Clear the console output +stringFilter=Filter stringFilterClear=Clear Filter