2
* The contents of this file are subject to the Netscape Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/NPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is Mozilla Communicator client code, released
15
* The Initial Developer of the Original Code is Netscape
16
* Communications Corporation. Portions created by Netscape are
17
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
24
//Cancel() is in EdDialogCommon.js
26
var tagname = "TAG NAME"
28
// dialog initialization code
31
if (!GetCurrentEditor())
36
// gDialog is declared in EdDialogCommon.js
37
// Set commonly-used widgets like this:
38
gDialog.fooButton = document.getElementById("fooButton");
42
// Set window location relative to parent window (based on persisted attributes)
45
// Set focus to first widget in dialog, e.g.:
46
SetTextboxFocus(gDialog.fooButton);
51
// Initialize all dialog widgets here,
52
// e.g., get attributes from an element for property dialog
57
// Validate all user data and set attributes and possibly insert new element here
58
// If there's an error the user must correct, return false to keep dialog open.
61
return true; // do close the window