Use display name to add a user to a group
[pithos-web-client] / src / gr / grnet / pithos / web / client / SessionExpiredDialog.java
index 6eb7c7b..0e99374 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2012 GRNET S.A. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or
  * without modification, are permitted provided that the following
  *
  * Redistribution and use in source and binary forms, with or
  * without modification, are permitted provided that the following
@@ -55,7 +55,6 @@ public class SessionExpiredDialog extends DialogBox {
         app = _app;
                // Set the dialog's caption.
                setText("Session Expired");
         app = _app;
                // Set the dialog's caption.
                setText("Session Expired");
-               setAnimationEnabled(true);
                setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
 
                setGlassEnabled(true);
                setStyleName("pithos-DialogBox");
 
@@ -73,7 +72,7 @@ public class SessionExpiredDialog extends DialogBox {
                // when the button is clicked.
                Button confirm = new Button("Proceed", new ClickHandler() {
                        @Override
                // when the button is clicked.
                Button confirm = new Button("Proceed", new ClickHandler() {
                        @Override
-                       public void onClick(@SuppressWarnings("unused") ClickEvent event) {
+                       public void onClick(ClickEvent event) {
                                app.authenticateUser();
                                hide();
                        }
                                app.authenticateUser();
                                hide();
                        }
@@ -99,12 +98,6 @@ public class SessionExpiredDialog extends DialogBox {
                                        app.authenticateUser();
                                        hide();
                                        break;
                                        app.authenticateUser();
                                        hide();
                                        break;
-                               case KeyCodes.KEY_ESCAPE:
-                                       hide();
-                                       break;
                        }
        }
                        }
        }
-
-
-
 }
 }