2000-04-29 00:26:07 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
2001-03-22 00:59:29 +00:00
|
|
|
*
|
2000-04-29 00:26:07 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
2001-03-22 00:59:29 +00:00
|
|
|
*
|
2000-04-29 00:26:07 +00:00
|
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
|
|
* March 31, 1998.
|
2001-03-22 00:59:29 +00:00
|
|
|
*
|
2000-04-29 00:26:07 +00:00
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
2000-07-21 22:14:44 +00:00
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Henrik Gemal <gemal@gemal.dk>
|
2000-04-29 00:26:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
function onLoad()
|
|
|
|
{
|
|
|
|
var docnamebox = document.getElementById("documentNameBox");
|
|
|
|
if (docnamebox)
|
|
|
|
{
|
|
|
|
var docname = window.arguments[0].dspname;
|
|
|
|
var item = document.createElement('text');
|
|
|
|
if (item)
|
|
|
|
{
|
|
|
|
docnamebox.appendChild(item);
|
2000-07-21 22:14:44 +00:00
|
|
|
item.setAttribute('value', unescape(docname));
|
2000-04-29 00:26:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
var saveit = document.getElementById("saveIt");
|
|
|
|
if (saveit)
|
|
|
|
{
|
|
|
|
window.arguments[0].opval = 2;
|
|
|
|
}
|
2000-04-29 16:59:11 +00:00
|
|
|
doSetOKCancel(0, onCancel, 0, 0);
|
2000-09-01 03:49:02 +00:00
|
|
|
moveToAlertPosition();
|
2000-04-29 00:26:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function onOpen()
|
|
|
|
{
|
|
|
|
window.arguments[0].opval = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onSave()
|
|
|
|
{
|
|
|
|
window.arguments[0].opval = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onCancel()
|
|
|
|
{
|
|
|
|
window.arguments[0].opval = 0;
|
2000-04-29 16:59:11 +00:00
|
|
|
return true;
|
2000-04-29 00:26:07 +00:00
|
|
|
}
|