Added last-modified date to Page Properties dialog

This commit is contained in:
cmanske%netscape.com 2000-04-28 23:35:36 +00:00
parent 7742d5f229
commit 9efe5dc6eb
2 changed files with 6 additions and 2 deletions

View File

@ -47,7 +47,6 @@ function Startup()
window.close();
}
dialog.PageLocation = document.getElementById("PageLocation");
dialog.PageModDate = document.getElementById("PageModDate");
dialog.TitleInput = document.getElementById("TitleInput");
dialog.AuthorInput = document.getElementById("AuthorInput");
dialog.DescriptionInput = document.getElementById("DescriptionInput");
@ -60,7 +59,12 @@ function Startup()
// so set only if not new doc URL
var location = editorShell.editorDocument.location;
if (location != "about:blank")
{
dialog.PageLocation.setAttribute("value", editorShell.editorDocument.location);
// Get last-modified file date+time
// TODO: Convert this to local time?
document.getElementById("PageModDate").setAttribute("value",editorShell.editorDocument.lastModified);
}
authorElement = GetMetaElement("author");
if (!authorElement)

View File

@ -52,7 +52,7 @@
</row>
<row>
<text class="label" value="&lastModified.label;" flex ="1" align="left"/>
<text class="label" value="[fill this in!]" id="PageModDate" align="left"/>
<text class="label" id="PageModDate" align="left"/>
</row>
<row vertical-align="middle">
<text class="label" value="&titleInput.label;"/>