Skip to content

Commit

Permalink
Follow-up on changes related to issue 3195
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Sep 10, 2013
1 parent 420d963 commit 318f327
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extension/content/firebug/chrome/searchBox.js
Expand Up @@ -184,7 +184,7 @@ Firebug.Search = Obj.extend(Firebug.Module,

panel.searchText = value;
searchBox.status = (found ? "found" : "notfound");
sBox.setPlaceholder(panel.name);
sBox.setPlaceholder();

if (FBTrace.DBG_SEARCH)
FBTrace.sysout("search " + searchBox.status + " " + value);
Expand Down Expand Up @@ -278,6 +278,9 @@ Firebug.Search = Obj.extend(Firebug.Module,
setPlaceholder: function()
{
var panel = Firebug.chrome.getSelectedPanel();
if (!panel)
return;

var searchBox = Firebug.chrome.$("fbSearchBox");
var panelType = Firebug.getPanelType(panel.name);
var title = Firebug.getPanelTitle(panelType);
Expand Down

0 comments on commit 318f327

Please sign in to comment.