View Source (contribution by Sammy Ford); fix year for copyright

This commit is contained in:
brade%netscape.com 1999-08-31 12:52:50 +00:00
Родитель c141070d53
Коммит ab5c9e1f08
1 изменённых файлов: 23 добавлений и 1 удалений

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

@ -12,12 +12,17 @@
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Copyright (C) 1998-1999 Netscape Communications Corporation. All Rights
* Reserved.
*
* Contributors:
* Sammy Ford
*/
/* Main Composer window UI control */
var EdAppCore = null;
var EdAppCoreName = "";
var toolbar;
var documentModified;
var EditorDisplayStyle = true;
@ -357,6 +362,23 @@ function EditorShowClipboard()
// --------------------------- View menu ---------------------------
function EditorViewSource()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
var url = window.content.location;
dump("Opening view of source for" + url + "\n");
toolkitCore.ShowWindowWithArgs("chrome://editor/content/viewSource.xul", window, url);
}
}
function EditorSetDocumentCharacterSet(aCharset)
{
dump(aCharset);