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

Unified Diff: lib/customizableUI.js

Issue 5040954746601472: Issue 186 - disabled ABP icon in tool bar re-appears after seamonkey restart (Closed)
Patch Set: Check for localname Created May 8, 2014, 3:11 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/customizableUI.js
===================================================================
--- a/lib/customizableUI.js
+++ b/lib/customizableUI.js
@@ -182,7 +182,7 @@
let node = toolbox.ownerDocument.getElementById(widget.id);
let position = toolbox.getAttribute(widget.positionAttribute) || "hidden,,";
- if (node)
+ if (node && node.parentNode.localName != "toolbarpalette")
{
if (typeof widget.onAdded == "function")
widget.onAdded(node)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld