Closed
Bug 486202
Opened 16 years ago
Closed 15 years ago
Need a method to append toolbar item from javascript.
Categories
(Toolkit :: Toolbars and Toolbar Customization, defect)
Toolkit
Toolbars and Toolbar Customization
Tracking
()
RESOLVED
INVALID
People
(Reporter: Natch, Unassigned)
References
Details
While attempting to write a test for bug 456984 I was not able to reliably get the new tab customizable button in the toolbar. There should be a method for that.
Reporter | ||
Comment 1•16 years ago
|
||
Err, that should have been bug 456984.
Comment 2•15 years ago
|
||
Err, something like the following should work:
var bar = document.getElementById("xsb-search-bar2");
bar.currentSet = "mailviews-container,spring,search-container";
bar.setAttribute("currentset", bar.currentSet);
document.persist(bar, "currentset");
I've been using this in one of my Thunderbird extensions for ages.
Reporter | ||
Comment 3•15 years ago
|
||
Excellent! Thanks Philip, for the test I'll just use:
var bar = top.opener.document.getElementById('nav-bar');
bar.currentSet = bar.currentSet + ',new-window-button';
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Updated•15 years ago
|
Resolution: WORKSFORME → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•