From 0d2b69c04b30028974072851d97781392e255abb Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 7 May 1999 00:12:18 +0000 Subject: [PATCH] remove button image bug workaround, add xul namespace workaround --- xpfe/browser/samples/dexanimdialog.xul | 59 +++++++++++++++--------- xpfe/browser/samples/dexanimmaster.xul | 6 +-- xpfe/browser/samples/dexsimpledialog.xul | 47 ++++++++++++------- xpfe/browser/samples/dexsimplemaster.xul | 7 ++- 4 files changed, 74 insertions(+), 45 deletions(-) diff --git a/xpfe/browser/samples/dexanimdialog.xul b/xpfe/browser/samples/dexanimdialog.xul index 5b4d8529c75..f5e6e22c908 100644 --- a/xpfe/browser/samples/dexanimdialog.xul +++ b/xpfe/browser/samples/dexanimdialog.xul @@ -29,6 +29,11 @@ // OK button handler function DoOK() { + var toolkitCore = GetToolkitCore(); + if (toolkitCore) + toolkitCore.CloseWindow(window); + return; + // get checkbox // (using a document method available on HTML and XUL // documents, but not on XML documents) @@ -65,6 +70,16 @@ return element; } + function GetToolkitCore() { + var toolkitCore = XPAppCoresManager.Find("ToolkitCore"); + if (!toolkitCore) { + toolkitCore = new ToolkitCore(); + if (toolkitCore) + toolkitCore.Init("ToolkitCore"); + } + return toolkitCore; + } + function animateButtonImage() { var button = document.getElementById("animation"); if (button) { @@ -84,29 +99,29 @@ } - - - - - - - - - - - - - - - - - - - -
Give me your money
+ + + Give me your money + + + - Remind me -
+ Remind me + + + + + + + + Start Animation + Stop Animation + + +