[pve-devel] r4896 - in pve-manager/pve2/www/manager: . window

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Jul 14 12:22:13 CEST 2010


Author: dietmar
Date: 2010-07-14 10:22:13 +0000 (Wed, 14 Jul 2010)
New Revision: 4896

Added:
   pve-manager/pve2/www/manager/window/
   pve-manager/pve2/www/manager/window/LoginWindow.js
Removed:
   pve-manager/pve2/www/manager/LoginWindow.js
Modified:
   pve-manager/pve2/www/manager/Makefile.am
Log:


Deleted: pve-manager/pve2/www/manager/LoginWindow.js
===================================================================
--- pve-manager/pve2/www/manager/LoginWindow.js	2010-07-14 10:19:25 UTC (rev 4895)
+++ pve-manager/pve2/www/manager/LoginWindow.js	2010-07-14 10:22:13 UTC (rev 4896)
@@ -1,90 +0,0 @@
-Ext.ns("PVE.window");
-
-PVE.window.LoginWindow = Ext.extend(Ext.Window, {
-
-    onLogon: function() {
-	var form = this.get(0).getForm();
-
-	if(form.isValid()){
-            this.el.mask('Please wait...', 'x-mask-loading');
-
-	    form.submit({
-		scope: this,
-		failure: function(f, resp){
-		    this.el.unmask();
-		    Ext.MessageBox.alert('Failure', "Login failed. Please try again");
-		},
-		success: function(f, resp){
-		    this.el.unmask();
-		    var handler = this.handler || Ext.emptyFn;
-		    handler.call(this.scope || this);
-		    this.destroy();
-		}
-	    });
-	}
-    },
-
-    initComponent: function() {
-	Ext.apply(this, {
-            width: 300,
-            height: 125,
-            modal: true,
-	    border: false,
-            draggable: false,
-	    closable: false,
-	    resizable: false,
-	    layout: 'fit',
-            title: 'PVE Manager Login',
-
-	    items: [{
-		xtype: 'form',
-		frame: true,
-		url: '/api2/extjs/ticket',
-
-		labelWidth: 70,
-		labelAlign  : 'right',
-
-		defaults: {
-		    anchor: '-5',
-		    allowBlank: false,
-		    listeners: {
-			scope: this,
-			specialkey: function(field, e) {
-			    if (e.getKey() === e.ENTER) {
-				this.onLogon();
-			    }
-			}
-		    }
-		},
-
-		items: [
-		    { 
-			xtype: 'textfield', 
-			fieldLabel: 'Username', 
-			name: 'username',
-			blankText:"Enter your username"
-		    },
-		    { 
-			xtype: 'textfield', 
-			inputType: 'password',
-			fieldLabel: 'Password', 
-			name: 'password',
-			blankText:"Enter your password"
-		    }
-		],
-		buttons: [
-		    {
-			text: 'Login',    
-			scope: this,
-			handler: function(){
-			    this.onLogon();
-			}
-		    }
-		]
-	    }]
-	});
-
-	PVE.window.LoginWindow.superclass.initComponent.call(this);
-    }
-
-});

Modified: pve-manager/pve2/www/manager/Makefile.am
===================================================================
--- pve-manager/pve2/www/manager/Makefile.am	2010-07-14 10:19:25 UTC (rev 4895)
+++ pve-manager/pve2/www/manager/Makefile.am	2010-07-14 10:22:13 UTC (rev 4896)
@@ -9,7 +9,7 @@
 	PVEUtils.js 					\
 	PVECache.js 					\
 	Workspace.js 					\
-	LoginWindow.js 					\
+	window/LoginWindow.js				\
 	PVEFilter.js 					\
 	ResourceTree.js 				\
 	ConfigPanel.js					\

Added: pve-manager/pve2/www/manager/window/LoginWindow.js
===================================================================
--- pve-manager/pve2/www/manager/window/LoginWindow.js	                        (rev 0)
+++ pve-manager/pve2/www/manager/window/LoginWindow.js	2010-07-14 10:22:13 UTC (rev 4896)
@@ -0,0 +1,90 @@
+Ext.ns("PVE.window");
+
+PVE.window.LoginWindow = Ext.extend(Ext.Window, {
+
+    onLogon: function() {
+	var form = this.get(0).getForm();
+
+	if(form.isValid()){
+            this.el.mask('Please wait...', 'x-mask-loading');
+
+	    form.submit({
+		scope: this,
+		failure: function(f, resp){
+		    this.el.unmask();
+		    Ext.MessageBox.alert('Failure', "Login failed. Please try again");
+		},
+		success: function(f, resp){
+		    this.el.unmask();
+		    var handler = this.handler || Ext.emptyFn;
+		    handler.call(this.scope || this);
+		    this.destroy();
+		}
+	    });
+	}
+    },
+
+    initComponent: function() {
+	Ext.apply(this, {
+            width: 300,
+            height: 125,
+            modal: true,
+	    border: false,
+            draggable: false,
+	    closable: false,
+	    resizable: false,
+	    layout: 'fit',
+            title: 'PVE Manager Login',
+
+	    items: [{
+		xtype: 'form',
+		frame: true,
+		url: '/api2/extjs/ticket',
+
+		labelWidth: 70,
+		labelAlign  : 'right',
+
+		defaults: {
+		    anchor: '-5',
+		    allowBlank: false,
+		    listeners: {
+			scope: this,
+			specialkey: function(field, e) {
+			    if (e.getKey() === e.ENTER) {
+				this.onLogon();
+			    }
+			}
+		    }
+		},
+
+		items: [
+		    { 
+			xtype: 'textfield', 
+			fieldLabel: 'Username', 
+			name: 'username',
+			blankText:"Enter your username"
+		    },
+		    { 
+			xtype: 'textfield', 
+			inputType: 'password',
+			fieldLabel: 'Password', 
+			name: 'password',
+			blankText:"Enter your password"
+		    }
+		],
+		buttons: [
+		    {
+			text: 'Login',    
+			scope: this,
+			handler: function(){
+			    this.onLogon();
+			}
+		    }
+		]
+	    }]
+	});
+
+	PVE.window.LoginWindow.superclass.initComponent.call(this);
+    }
+
+});



More information about the pve-devel mailing list