mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 190939 JS error and strict warning in sidebarOverlay.js r=shliang sr=alecf a=asa
This commit is contained in:
parent
ba000a51f0
commit
e51053493b
@ -801,8 +801,6 @@ function sidebar_open_default_panel(wait, tries) {
|
||||
// which will aggregate it with the other datasources that describe
|
||||
// the individual panel's title, customize URL, and content URL.
|
||||
var panels = document.getElementById('sidebar-panels');
|
||||
|
||||
var ds = RDF.GetDataSource(sidebarObj.datasource_uri);
|
||||
panels.database.AddDataSource(ds);
|
||||
|
||||
debug("Adding observer to database.");
|
||||
@ -1501,13 +1499,15 @@ function SidebarSetButtonOpen(aSidebarNowOpen)
|
||||
{
|
||||
// change state so toolbar icon can be updated
|
||||
var pt = document.getElementById("PersonalToolbar");
|
||||
pt.setAttribute("prefixopen", aSidebarNowOpen);
|
||||
|
||||
// set tooltip for toolbar icon
|
||||
var header = document.getElementById("sidebar-title-box");
|
||||
var tooltip = header.getAttribute(aSidebarNowOpen ?
|
||||
"tooltipclose" : "tooltipopen");
|
||||
pt.setAttribute("prefixtooltip", tooltip);
|
||||
if (pt) {
|
||||
pt.setAttribute("prefixopen", aSidebarNowOpen);
|
||||
|
||||
// set tooltip for toolbar icon
|
||||
var header = document.getElementById("sidebar-title-box");
|
||||
var tooltip = header.getAttribute(aSidebarNowOpen ?
|
||||
"tooltipclose" : "tooltipopen");
|
||||
pt.setAttribute("prefixtooltip", tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
function SidebarInitContextMenu(aMenu, aPopupNode)
|
||||
|
Loading…
Reference in New Issue
Block a user