Added last-modified date to Page Properties dialog
git-svn-id: svn://10.0.0.236/trunk@67586 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
33c7459c81
commit
3d685492d0
@ -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