Make hyperlinks update URL when screen is visible

Instead of updating the URL to the screen and then loading the RPCs,
update the URL after the RPCs are complete and the screen is going
to be made visible to the user.  This allows us to behave similar
to the way Gmail reacts, which is to avoid the URL update until the
data you are viewing matches the URL.

Change-Id: Iadde8240d506e3a51b9f064ecfa5fb91045616f5
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-12-30 09:33:11 -08:00
parent 08ba0c6817
commit 53eae8cdd3
32 changed files with 303 additions and 146 deletions

View File

@@ -16,6 +16,7 @@ package com.google.gerrit.client;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
@@ -36,7 +37,7 @@ public class NotSignedInDialog extends AutoCenterDialogBox {
@Override
public void onClick(ClickEvent event) {
hide();
Gerrit.doSignIn();
Gerrit.doSignIn(History.getToken());
}
});
buttons.add(signin);