Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/inspectorObserver.js

Issue 5765003219042304: EEH inspector integration fix (Closed)
Patch Set: Created April 14, 2014, 3:30 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/inspectorObserver.js
===================================================================
--- a/lib/inspectorObserver.js
+++ b/lib/inspectorObserver.js
@@ -40,7 +40,7 @@
inspectorReady: function(eventName, toolbox, panel)
{
let panelWindow = panel.panelWin;
- let inspectBtn = panelWindow.document.getElementById("inspector-inspect-toolbutton");
+ let inspectBtn = panelWindow.document.getElementById("inspector-breadcrumbs");
if (!inspectBtn)
return;
@@ -58,7 +58,7 @@
panelWindow.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank",
"chrome,centerscreen,resizable,dialog=no", panel.selection.node);
}, false);
- inspectBtn.parentNode.insertBefore(button, inspectBtn.nextSibling);
+ inspectBtn.parentNode.insertBefore(button, inspectBtn);
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld