changeset 82:4c5fa2b0086a

The project list button toggles the project list now. flys-client/trunk@1592 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 28 Mar 2011 15:23:51 +0000
parents 1d0fb625248d
children 4784ca718476
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Mar 28 13:24:13 2011 +0000
+++ b/flys-client/ChangeLog	Mon Mar 28 15:23:51 2011 +0000
@@ -1,3 +1,8 @@
+2011-03-28  Raimund Renkert <rrenkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/MainMenu.java: The project
+	list button toggles the project list now.
+
 2011-03-28  Raimund Renkert <rrenkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java	Mon Mar 28 13:24:13 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java	Mon Mar 28 15:23:51 2011 +0000
@@ -68,7 +68,10 @@
         projectList.addClickHandler(new ClickHandler() {
             public void onClick(ClickEvent event) {
                 GWT.log("Clicked 'Open ProjectList' button.");
-                getFlys().getProjectList().show();
+                if (getFlys().getProjectList().isVisible())
+                    getFlys().getProjectList().hide();
+                else
+                    getFlys().getProjectList().show();
             }
         });
 

http://dive4elements.wald.intevation.org