Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pkondzior
Created November 30, 2010 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkondzior/721670 to your computer and use it in GitHub Desktop.
Save pkondzior/721670 to your computer and use it in GitHub Desktop.
FBL.ns(function() {
with (FBL) {
Firebug.FireRailsMSG = domplate(Firebug.Rep,
{
className: "text",
tag: DIV({style: "white-space:pre"}, "$msg")
});
Firebug.registerStringBundle("chrome://firerails/locale/overlay.properties");
// Dirty Command Line togglet Hax to prevent toggling command line popup inside FireRails
Firebug.CommandLine.Popup.oldToggle = Firebug.CommandLine.Popup.toggle;
Firebug.CommandLine.Popup.toggle = function(context) {
if (FBTrace.DBG_FIRERAILS)
FBTrace.sysout("firerails: Firebug.CommandLine.Popup.toggle HAX");
let panel = Firebug.chrome.getSelectedPanel();
if (panel && panel.name == "firerails")
return;
Firebug.CommandLine.Popup.oldToggle(context);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment