diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/com/vaadin/client/communication/DefaultConnectionStateHandler.java | 1 | ||||
-rw-r--r-- | client/src/com/vaadin/client/communication/DefaultReconnectDialog.java | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/communication/DefaultConnectionStateHandler.java b/client/src/com/vaadin/client/communication/DefaultConnectionStateHandler.java index ce65203a69..f32bd5c5ea 100644 --- a/client/src/com/vaadin/client/communication/DefaultConnectionStateHandler.java +++ b/client/src/com/vaadin/client/communication/DefaultConnectionStateHandler.java @@ -365,6 +365,7 @@ public class DefaultConnectionStateHandler implements ConnectionStateHandler { * Called when the reconnect dialog should be hidden. */ protected void hideDialog() { + reconnectDialog.setReconnecting(false); reconnectDialog.hide(); } diff --git a/client/src/com/vaadin/client/communication/DefaultReconnectDialog.java b/client/src/com/vaadin/client/communication/DefaultReconnectDialog.java index 340f32b25e..05b4e109ff 100644 --- a/client/src/com/vaadin/client/communication/DefaultReconnectDialog.java +++ b/client/src/com/vaadin/client/communication/DefaultReconnectDialog.java @@ -18,6 +18,8 @@ package com.vaadin.client.communication; import com.google.gwt.core.client.Scheduler; import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.core.shared.GWT; +import com.google.gwt.dom.client.BodyElement; +import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Style.Visibility; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; @@ -38,6 +40,7 @@ import com.vaadin.client.ui.VOverlay; public class DefaultReconnectDialog extends VOverlay implements ReconnectDialog { private static final String STYLE_RECONNECTING = "active"; + private static final String STYLE_BODY_RECONNECTING = "v-reconnecting"; public Label label; @@ -68,6 +71,12 @@ public class DefaultReconnectDialog extends VOverlay implements ReconnectDialog @Override public void setReconnecting(boolean reconnecting) { setStyleName(STYLE_RECONNECTING, reconnecting); + BodyElement body = Document.get().getBody(); + if (reconnecting) { + body.addClassName(STYLE_BODY_RECONNECTING); + } else { + body.removeClassName(STYLE_BODY_RECONNECTING); + } // Click to refresh after giving up if (!reconnecting) { |