make overview item work
authorRobert Kaiser <robert@notebook.(none)>
Sun, 2 Aug 2009 15:33:25 +0000 (17:33 +0200)
committerRobert Kaiser <robert@notebook.(none)>
Sun, 2 Aug 2009 15:33:25 +0000 (17:33 +0200)
xulapp/chrome/mandelbrot/content/mandelbrot.js

index 34761cac22fe4f9779508aaf59e45715d79811b3..d07345ee81fe1d97b74489f94b22185b16674f8b 100644 (file)
@@ -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);
 }