this.fillAuth(res.data);
this.checkFails =0;
- Pman.onload();
+
+
+ if (Pman.onload) {
+ Pman.onload();
+ }
+ if (Pman.Login.callback) {
+ Pman.Login.callback();
+
+ }
return false;
},
//Roo.get('loading').show();
Roo.get('loading-mask').show();
}
-
- Pman.onload();
-
+ if (Pman.onload) {
+ Pman.onload();
+ }
+ if (Pman.Login.callback) {
+ Pman.Login.callback();
+ }
}
}
if (ev.keyCode == 13) {
Pman.Login.dialog.el.mask("Logging in");
Pman.Login.form.doAction('submit', {
- url: baseURL + '/Login.json',
+ url: baseURL + '/Login',
method: 'POST'
});
}
- show: function (modal)
+ show: function (modal, cb)
{
if (this.disabled) {
return;
}
+ this.callback = cb; // used for non-pman usage..
modal = modal || false;
if (Pman.Login.authUserId < 0) { // logout!?
return;
}
//incomming._node = tnode;
+ // why we want this non-modal????
this.form.reset();
this.dialog.modal = !modal;
this.dialog.show();