mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
d456d1929b
commit
46b7a16d7a
@ -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]);
|
||||
|
@ -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();
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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"));
|
||||
}
|
||||
|
@ -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);"/>
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user