[pve-devel] [PATCH manager 2/3] remove unneccesary title and border

Dominik Csapak d.csapak at proxmox.com
Fri Apr 1 08:59:20 CEST 2016


usability fix: when showing the login window,
make the username field have the default focus,
so that one can enter the username right away

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/window/LoginWindow.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/window/LoginWindow.js b/www/manager6/window/LoginWindow.js
index aef1506..d980860 100644
--- a/www/manager6/window/LoginWindow.js
+++ b/www/manager6/window/LoginWindow.js
@@ -99,6 +99,8 @@ Ext.define('PVE.window.LoginWindow', {
 
     title: gettext('Proxmox VE Login'),
 
+    defaultFocus: 'usernameField',
+
     items: [{
 	xtype: 'form',
 	layout: 'form',
@@ -115,6 +117,7 @@ Ext.define('PVE.window.LoginWindow', {
 		xtype: 'textfield',
 		fieldLabel: gettext('User name'),
 		name: 'username',
+		itemId: 'usernameField',
 		reference: 'usernameField',
 		blankText: gettext("Enter your user name")
 	    },
-- 
2.1.4





More information about the pve-devel mailing list