From: Robert Kaiser Date: Sun, 2 Aug 2009 15:33:25 +0000 (+0200) Subject: make overview item work X-Git-Url: https://git-public.kairo.at/?p=mandelbrot.git;a=commitdiff_plain;h=b8f9a76fe0c8514e27500eaf1d270ef507399d17;ds=sidebyside make overview item work --- 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); }