Arik Hadas has uploaded a new change for review. Change subject: webadmin: fixed initial focus in edit pool dialog ......................................................................
webadmin: fixed initial focus in edit pool dialog The name textbox is the default component to get the initial focus in vm dialogs, but in the edit pool dialog the name textbox is disabled, thus no component gets focus when the dialog is opened. To fix this, I changed the component that gets the initial focus in the edit pool dialog to the description textbox. Change-Id: I55445daaf90d0c394f6da28cc3d39495b1e3c115 Signed-off-by: Arik Hadas <aha...@redhat.com> --- M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/popup/pool/PoolEditPopupWidget.java 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/71/9571/1 diff --git a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/popup/pool/PoolEditPopupWidget.java b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/popup/pool/PoolEditPopupWidget.java index be4e81a..6dd53f3 100644 --- a/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/popup/pool/PoolEditPopupWidget.java +++ b/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/uicommon/popup/pool/PoolEditPopupWidget.java @@ -64,6 +64,11 @@ }); } + @Override + public void focusInput() { + descriptionEditor.setFocus(true); + } + private void enableEditPoolFields() { descriptionEditor.setEnabled(true); prestartedVmsEditor.setEnabled(true); -- To view, visit http://gerrit.ovirt.org/9571 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I55445daaf90d0c394f6da28cc3d39495b1e3c115 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <aha...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches