Bug 261267 helper application dialog has title issues when opening an unknown filetype - browser/toolkit parts

p=me r=vladimir sr=shaver
This commit is contained in:
bugzilla%arlen.demon.co.uk 2004-10-20 20:31:20 +00:00
parent d456d1929b
commit 46b7a16d7a
10 changed files with 11 additions and 19 deletions

View File

@ -116,7 +116,6 @@ function Startup()
var bookmarkView = document.getElementById("bookmarks-view");
var shouldSetOKButton = true;
var dialogElement = document.documentElement;
if ("arguments" in window) {
var ind;
var folderItem = null;
@ -132,7 +131,7 @@ function Startup()
document.getElementById("createinseparator").setAttribute("hidden", "true");
document.getElementById("nameseparator").setAttribute("hidden", "true");
sizeToContent();
dialogElement.setAttribute("title", dialogElement.getAttribute("title-selectFolder"));
document.title = document.documentElement.getAttribute("selectFolderTitle");
shouldSetOKButton = false;
if (window.arguments[2])
folderItem = RDF.GetResource(window.arguments[2]);

View File

@ -63,7 +63,7 @@ function Startup()
bookmarksView.treeBoxObject.view.selection.select(0);
windowNode.setAttribute("title", titleString);
document.title = titleString;
document.getElementById("CommandUpdate_Bookmarks").setAttribute("commandupdater","true");
bookmarksView.focus();

View File

@ -94,11 +94,8 @@ function Init()
field.value = value;
}
var propsWindow = document.getElementById("bmPropsWindow");
var nameNode = document.getElementById("name");
var title = propsWindow.getAttribute("title");
title = title.replace(/\*\*bm_title\*\*/gi, nameNode.value);
propsWindow.setAttribute("title", title);
document.title = document.title.replace(/\*\*bm_title\*\*/gi, nameNode.value);
// check bookmark schedule
var scheduleArc = RDF.GetResource(WEB_NS+"Schedule");

View File

@ -39,7 +39,6 @@
# Global Variables
var helpBrowser;
var helpWindow;
var helpSearchPanel;
var emptySearch;
var emptySearchText
@ -117,7 +116,6 @@ function displayTopic(topic) {
# Initialize the Help window
function init() {
// Cache panel references.
helpWindow = document.getElementById("help");
helpSearchPanel = document.getElementById("help-search-panel");
helpTocPanel = document.getElementById("help-toc-panel");
helpIndexPanel = document.getElementById("help-index-panel");
@ -184,8 +182,7 @@ function loadHelpRDF() {
log("Help file: " + helpFileURI + " was not found.");
}
try {
helpWindow.setAttribute("title",
getAttribute(helpFileDS, RDF_ROOT, NC_TITLE, ""));
document.title = getAttribute(helpFileDS, RDF_ROOT, NC_TITLE, "");
helpBaseURI = getAttribute(helpFileDS, RDF_ROOT, NC_BASE, helpBaseURI);
defaultTopic = getAttribute(helpFileDS,
RDF_ROOT, NC_DEFAULTTOPIC, "welcome");

View File

@ -55,8 +55,7 @@ function onLoad()
// if no download button
// set title to "Install Font"
// and set cancel button to "OK"
var downloadFontDialog = document.getElementById("downloadFontDialog");
downloadFontDialog.setAttribute("title", fontPackageBundle.getString("windowTitleNoDownload"));
document.title = fontPackageBundle.getString("windowTitleNoDownload");
var cancelButton = document.getElementById("cancelButton");
cancelButton.setAttribute("label", fontPackageBundle.getString("cancelButtonNoDownload"));
}

View File

@ -24,8 +24,8 @@
</content>
<implementation>
<property name="title" onget="return this.getAttribute('title')"
onset="this.setAttribute('title', val);"/>
<property name="title" onget="return document.title;"
onset="return document.title = val;"/>
<property name="canAdvance" onget="return this._canAdvance;"
onset="this._canAdvance=val; this._nextButton.setAttribute('disabled', !val);"/>

View File

@ -288,7 +288,7 @@ nsUnknownContentTypeDialog.prototype = {
this.mTitle = this.dialogElement("strings").getFormattedString("title", [fname]);
win.setAttribute( "title", this.mTitle );
win.document.title = this.mTitle;
// Put content type, filename and location into intro.
this.initIntro(url, fname);

View File

@ -363,7 +363,7 @@ nsUnknownContentTypeDialog.prototype = {
var displayName = fname.replace(/ +/g, " ");
this.mTitle = this.dialogElement("strings").getFormattedString("title", [displayName]);
win.setAttribute( "title", this.mTitle );
win.document.title = this.mTitle;
// Put content type, filename and location into intro.
this.initIntro(url, fname, displayName);

View File

@ -44,7 +44,7 @@ function init()
if (creator)
creator = creator.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;
document.documentElement.setAttribute("title", extensionsStrings.getFormattedString("aboutWindowTitle", [name]));
document.title = extensionsStrings.getFormattedString("aboutWindowTitle", [name]);
var extensionName = document.getElementById("extensionName");
extensionName.setAttribute("value", name);
var extensionVersion = document.getElementById("extensionVersion");

View File

@ -110,7 +110,7 @@ function Startup()
gExtensionsView.selected = lastSelected;
var extensionsStrings = document.getElementById("extensionsStrings");
document.documentElement.setAttribute("title", extensionsStrings.getString(gWindowState + "Title"));
document.title = extensionsStrings.getString(gWindowState + "Title");
gExtensionsViewController.onCommandUpdate();