CreateProjectScreen: Set focus into project input field
Change-Id: Ie6a9b1c7bcdb951eaea761d45499ed8c90929691 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -111,6 +111,14 @@ public class CreateProjectScreen extends Screen {
|
||||
projectsPopup.initPopup(AdminConstants.I.projects(), PageLinks.ADMIN_PROJECTS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onShowView() {
|
||||
super.onShowView();
|
||||
if (project != null) {
|
||||
project.setFocus(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void addCreateProjectPanel() {
|
||||
final VerticalPanel fp = new VerticalPanel();
|
||||
fp.setStyleName(Gerrit.RESOURCES.css().createProjectPanel());
|
||||
|
||||
Reference in New Issue
Block a user