mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Added last-modified date to Page Properties dialog
This commit is contained in:
parent
7742d5f229
commit
9efe5dc6eb
@ -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)
|
||||
|
@ -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;"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user