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

Unified Diff: lib/ui.js

Issue 6429432411586560: issue 449 - override toolbar icon context menu if left click action is redefined (Closed)
Patch Set: Created May 14, 2014, 4:06 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 | « chrome/content/ui/overlay.xul ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -1087,9 +1087,15 @@
else
{
if (Prefs.defaulttoolbaraction == 0)
+ {
icon.setAttribute("type", "menu");
+ icon.removeAttribute("context");
+ }
else
+ {
icon.setAttribute("type", "menu-button");
+ icon.setAttribute("context", "abp-status-popup");
+ }
}
icon.setAttribute("abpstate", state);
« no previous file with comments | « chrome/content/ui/overlay.xul ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld