Roo/Login.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 23 Jun 2010 08:28:01 +0000 (16:28 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 23 Jun 2010 08:28:01 +0000 (16:28 +0800)
Roo/Login.js

index 4ae87d7..b89ebb4 100644 (file)
@@ -538,65 +538,65 @@ Roo.extend(Roo.Login, Roo.LayoutDialog, {
                 },
                   
                 
-            ],
-            buttons : [
-                {
-                    xtype : 'Button',
-                    xns : 'Roo',
-                    text : "Forgot Password",
-                    listeners : {
-                        click : function() {
-                    
-                            var n = this.form.findField('username').getValue();
-                            if (!n.length) {
-                                Roo.MessageBox.alert("Error", "Fill in your email address");
-                                return;
-                            }
-                            Roo.Ajax.request({
-                                url: this.dialog.url,
-                                params: {
-                                    passwordRequest: n
-                                },
-                                method: this.dialog.method,
-                                success:  function(response, opts)  {  // check successfull...
-                                
-                                    var res = this.dialog.processResponse(response);
-                                    if (!res.success) { // error!
-                                       Roo.MessageBox.alert("Error" ,
-                                            res.errorMsg ? res.errorMsg  : "Problem Requesting Password Reset");
-                                       return;
-                                    }
-                                    Roo.MessageBox.alert("Notice" ,
-                                        "Please check you email for the Password Reset message");
-                                },
-                                failure : function() {
-                                    Roo.MessageBox.alert("Error" , "Problem Requesting Password Reset");
-                                }
-                                
-                            });
-                        }
+            ]
+        }
+    ]
+    buttons : [
+        {
+            xtype : 'Button',
+            xns : 'Roo',
+            text : "Forgot Password",
+            listeners : {
+                click : function() {
+            
+                    var n = this.form.findField('username').getValue();
+                    if (!n.length) {
+                        Roo.MessageBox.alert("Error", "Fill in your email address");
+                        return;
                     }
-                },
-                {
-                    xtype : 'Button',
-                    xns : 'Roo',
-                    text : "Login",
-                    listeners : {
+                    Roo.Ajax.request({
+                        url: this.dialog.url,
+                        params: {
+                            passwordRequest: n
+                        },
+                        method: this.dialog.method,
+                        success:  function(response, opts)  {  // check successfull...
                         
-                        click : function () {
-                                
-                            this.dialog.el.mask("Logging in");
-                            this.form.doAction('submit', {
-                                    url: this.dialog.url,
-                                    method: this.dialog.method
-                            });
+                            var res = this.dialog.processResponse(response);
+                            if (!res.success) { // error!
+                               Roo.MessageBox.alert("Error" ,
+                                    res.errorMsg ? res.errorMsg  : "Problem Requesting Password Reset");
+                               return;
+                            }
+                            Roo.MessageBox.alert("Notice" ,
+                                "Please check you email for the Password Reset message");
+                        },
+                        failure : function() {
+                            Roo.MessageBox.alert("Error" , "Problem Requesting Password Reset");
                         }
-                    }
+                        
+                    });
                 }
-            ]
+            }
+        },
+        {
+            xtype : 'Button',
+            xns : 'Roo',
+            text : "Login",
+            listeners : {
+                
+                click : function () {
+                        
+                    this.dialog.el.mask("Logging in");
+                    this.form.doAction('submit', {
+                            url: this.dialog.url,
+                            method: this.dialog.method
+                    });
+                }
+            }
         }
     ]
-})
+