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 34761ca..d07345e 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);
 }