Do silly homepage tooltip text stuff in a callback.
git-svn-id: svn://10.0.0.236/trunk@126831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
87e0459927
commit
5014a5ed6d
@ -245,16 +245,6 @@ function Startup()
|
||||
return;
|
||||
}
|
||||
|
||||
// Do all UI building here:
|
||||
|
||||
// set home button tooltip text
|
||||
var homePage = getHomePage();
|
||||
if (homePage) {
|
||||
var homeButton = document.getElementById("home-button");
|
||||
if (homeButton)
|
||||
homeButton.setAttribute("tooltiptext", homePage);
|
||||
}
|
||||
|
||||
// initialize observers and listeners
|
||||
window.XULBrowserWindow = new nsBrowserStatusHandler();
|
||||
|
||||
@ -384,6 +374,14 @@ function Startup()
|
||||
|
||||
function LoadBookmarksCallback()
|
||||
{
|
||||
// set home button tooltip text
|
||||
var homePage = getHomePage();
|
||||
if (homePage) {
|
||||
var homeButton = document.getElementById("home-button");
|
||||
if (homeButton)
|
||||
homeButton.setAttribute("tooltiptext", homePage);
|
||||
}
|
||||
|
||||
try {
|
||||
if (!gBookmarksService)
|
||||
gBookmarksService = Components.classes["@mozilla.org/browser/bookmarks-service;1"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user