mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
37 lines
860 B
JavaScript
37 lines
860 B
JavaScript
var editorShell;
|
|
var toolkitCore;
|
|
var insertNew = true;
|
|
|
|
// dialog initialization code
|
|
function Startup()
|
|
{
|
|
dump("Doing Startup...\n");
|
|
|
|
// get the editor shell from the parent window
|
|
editorShell = window.opener.editorShell;
|
|
editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell);
|
|
if(!editorShell) {
|
|
dump("EditoreditorShell not found!!!\n");
|
|
window.close();
|
|
return;
|
|
}
|
|
|
|
dump("EditoreditorShell found for HRule Properties dialog\n");
|
|
|
|
// Create dialog object to store controls for easy access
|
|
dialog = new Object;
|
|
// GET EACH CONTROL -- E.G.:
|
|
//dialog.editBox = document.getElementById("editBox");
|
|
// Can we get at just the edit field?
|
|
dialog.AltText = document.getElementById("image.AltText");
|
|
|
|
//initDialog();
|
|
|
|
// SET FOCUS TO FIRST CONTROL
|
|
//dialog.editBox.focus();
|
|
}
|
|
|
|
function OnOK()
|
|
{
|
|
}
|