From ae37e95ae30b1049ab4bd8b07e6efcf8fd014ce3 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Tue, 28 Apr 2009 22:08:16 +0200 Subject: [PATCH] make extra button to call image drawing really work --- xulapp/chrome/mandelbrot/content/image-settings.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xulapp/chrome/mandelbrot/content/image-settings.js b/xulapp/chrome/mandelbrot/content/image-settings.js index 3b19434..a025bde 100644 --- a/xulapp/chrome/mandelbrot/content/image-settings.js +++ b/xulapp/chrome/mandelbrot/content/image-settings.js @@ -40,6 +40,8 @@ var gColorPalette = []; function initSettings() { recalcCoord('Cr', 'scale'); recalcCoord('Ci', 'scale'); + if (!window.opener) + window.getButton('extra1').disabled = true; } function drawPreview() { @@ -134,4 +136,9 @@ function checkProportions() { function roundCoord(floatval) { // We should round to 10 decimals here or so return floatval; +} + +function callDrawImage() { + window.opener.drawImage(); + window.close(); } \ No newline at end of file -- 2.35.3