[pve-devel] r5768 - pve-manager/pve2/www/new/window

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Mar 29 15:08:46 CEST 2011


Author: dietmar
Date: 2011-03-29 15:08:46 +0200 (Tue, 29 Mar 2011)
New Revision: 5768

Modified:
   pve-manager/pve2/www/new/window/LoginWindow.js
Log:
cleanup 


Modified: pve-manager/pve2/www/new/window/LoginWindow.js
===================================================================
--- pve-manager/pve2/www/new/window/LoginWindow.js	2011-03-29 12:44:20 UTC (rev 5767)
+++ pve-manager/pve2/www/new/window/LoginWindow.js	2011-03-29 13:08:46 UTC (rev 5768)
@@ -71,9 +71,8 @@
 				    f.focus(true, 500);
 				},
 				specialkey: function(f, e) {
-				    var form = f.findParentByType("form").getForm();
 				    if (e.getKey() === e.ENTER) {
-					var pf = form.findField('password');
+					var pf = self.query('textfield[name="password"]')[0];
 					if (pf.getValue()) {
 					    onLogon(self);
 					} else {



More information about the pve-devel mailing list