// call parent..
Roo.Login.superclass.constructor.call(this);
}
-Roo.extend(Roo.Login, Roo.LayoutDialog
-
-
+Roo.extend(Roo.Login, Roo.LayoutDialog, {
onLoad : function() // called on page load...
{
if (!res.success) { // error!
this.checkFails = 5;
//console.log('call failure');
- return Pman.Login.failure(response,opts);
+ return this.failure(response,opts);
}
+
if (!res.data.id) { // id=0 == login failure.
return this.show(true);
}
//console.log(success);
this.fillAuth(res.data);
this.checkFails =0;
- Pman.onload();
+ Roo.XComponent.build();
},
failure : this.show
});