Fixed busted Page Properties dialog, b=86706, r=brade, sr=kin

This commit is contained in:
cmanske%netscape.com 2001-08-02 22:00:59 +00:00
Родитель a816238aeb
Коммит 71af83ce89
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -30,6 +30,7 @@ var insertNewDescription = false;
var titleWasEdited = false; var titleWasEdited = false;
var authorWasEdited = false; var authorWasEdited = false;
var descWasEdited = false; var descWasEdited = false;
var dialog;
//Cancel() is in EdDialogCommon.js //Cancel() is in EdDialogCommon.js
// dialog initialization code // dialog initialization code
@ -38,7 +39,7 @@ function Startup()
if (!InitEditorShell()) if (!InitEditorShell())
return; return;
var dialog = new Object; dialog = new Object;
if (!dialog) if (!dialog)
{ {
dump("Failed to create dialog object!!!\n"); dump("Failed to create dialog object!!!\n");
@ -55,7 +56,7 @@ function Startup()
// so set only if not new doc URL // so set only if not new doc URL
var location = editorShell.editorDocument.location; var location = editorShell.editorDocument.location;
var lastmodString = GetString("Unknown"); var lastmodString = GetString("Unknown");
dump("location="+location);
if (location != "about:blank") if (location != "about:blank")
{ {
dialog.PageLocation.setAttribute("value", editorShell.editorDocument.location); dialog.PageLocation.setAttribute("value", editorShell.editorDocument.location);
@ -68,7 +69,6 @@ dump("location="+location);
lastmodString = lastmoddate; lastmodString = lastmoddate;
} }
dump(", lastmod date="+lastmoddate+"\n");
document.getElementById("PageModDate").setAttribute("value", lastmodString); document.getElementById("PageModDate").setAttribute("value", lastmodString);
authorElement = GetMetaElement("author"); authorElement = GetMetaElement("author");