зеркало из https://github.com/mozilla/gecko-dev.git
Bug 190939 JS error and strict warning in sidebarOverlay.js r=shliang sr=alecf a=asa
This commit is contained in:
Родитель
b915e39cc4
Коммит
abc3d2dee4
|
@ -801,8 +801,6 @@ function sidebar_open_default_panel(wait, tries) {
|
||||||
// which will aggregate it with the other datasources that describe
|
// which will aggregate it with the other datasources that describe
|
||||||
// the individual panel's title, customize URL, and content URL.
|
// the individual panel's title, customize URL, and content URL.
|
||||||
var panels = document.getElementById('sidebar-panels');
|
var panels = document.getElementById('sidebar-panels');
|
||||||
|
|
||||||
var ds = RDF.GetDataSource(sidebarObj.datasource_uri);
|
|
||||||
panels.database.AddDataSource(ds);
|
panels.database.AddDataSource(ds);
|
||||||
|
|
||||||
debug("Adding observer to database.");
|
debug("Adding observer to database.");
|
||||||
|
@ -1501,6 +1499,7 @@ function SidebarSetButtonOpen(aSidebarNowOpen)
|
||||||
{
|
{
|
||||||
// change state so toolbar icon can be updated
|
// change state so toolbar icon can be updated
|
||||||
var pt = document.getElementById("PersonalToolbar");
|
var pt = document.getElementById("PersonalToolbar");
|
||||||
|
if (pt) {
|
||||||
pt.setAttribute("prefixopen", aSidebarNowOpen);
|
pt.setAttribute("prefixopen", aSidebarNowOpen);
|
||||||
|
|
||||||
// set tooltip for toolbar icon
|
// set tooltip for toolbar icon
|
||||||
|
@ -1508,6 +1507,7 @@ function SidebarSetButtonOpen(aSidebarNowOpen)
|
||||||
var tooltip = header.getAttribute(aSidebarNowOpen ?
|
var tooltip = header.getAttribute(aSidebarNowOpen ?
|
||||||
"tooltipclose" : "tooltipopen");
|
"tooltipclose" : "tooltipopen");
|
||||||
pt.setAttribute("prefixtooltip", tooltip);
|
pt.setAttribute("prefixtooltip", tooltip);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function SidebarInitContextMenu(aMenu, aPopupNode)
|
function SidebarInitContextMenu(aMenu, aPopupNode)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче