From b8f9a76fe0c8514e27500eaf1d270ef507399d17 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 2 Aug 2009 17:33:25 +0200 Subject: [PATCH] make overview item work --- xulapp/chrome/mandelbrot/content/mandelbrot.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xulapp/chrome/mandelbrot/content/mandelbrot.js b/xulapp/chrome/mandelbrot/content/mandelbrot.js index 34761ca..d07345e 100644 --- a/xulapp/chrome/mandelbrot/content/mandelbrot.js +++ b/xulapp/chrome/mandelbrot/content/mandelbrot.js @@ -511,8 +511,11 @@ function updateBookmarkMenu(aParent) { function callBookmark(evtarget) { if (evtarget.id == "bookmarkSave" || evtarget.id == "bookmarkSeparator") - return - + return; + if (evtarget.id == "bookmarkOverview") { + adjustCoordsAndDraw(new complex(0,0), new complex(0,0)); + return; + } alert(evtarget.getAttribute('label') + ', ' + evtarget.getAttribute('bmRowID')); //gPref.setIntPref("mandelbrot.iteration_max", iterMax); } -- 2.43.0