projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix #8131 - chinese translations
[Pman.Core]
/
Pman.Login.js
diff --git
a/Pman.Login.js
b/Pman.Login.js
index
a8233b2
..
a7b77e2
100644
(file)
--- a/
Pman.Login.js
+++ b/
Pman.Login.js
@@
-132,7
+132,9
@@
Pman.Login = new Roo.util.Observable({
var res = Pman.processResponse(response);
//console.log(res);
if ( Pman.Login.checkFails > 2) {
var res = Pman.processResponse(response);
//console.log(res);
if ( Pman.Login.checkFails > 2) {
- Pman.Preview.disable();
+ if (typeof(Pman.Preview) != 'undefined') {
+ Pman.Preview.disable(); // not sure why this was added - but MO chrome does not have it.
+ }
Roo.MessageBox.alert("Error", res.errorMsg ? res.errorMsg :
"Error getting authentication status. - try reloading");
return;
Roo.MessageBox.alert("Error", res.errorMsg ? res.errorMsg :
"Error getting authentication status. - try reloading");
return;
@@
-259,16
+261,15
@@
Pman.Login = new Roo.util.Observable({
Roo.MessageBox.alert("Error", "Fill in your email address");
return;
}
Roo.MessageBox.alert("Error", "Fill in your email address");
return;
}
-
Roo.Ajax.r
equest({
+
new Pman.R
equest({
url: baseURL + '/Login.js',
mask : "Sending Password Reset email",
params: {
passwordRequest: n
},
method: 'POST',
url: baseURL + '/Login.js',
mask : "Sending Password Reset email",
params: {
passwordRequest: n
},
method: 'POST',
- success: function(res
ponse, opts
) { // check successfull...
+ success: function(res) { // check successfull...
- var res = Pman.processResponse(response);
if (!res.success) { // error!
Roo.MessageBox.alert("Error" , res.errorMsg ? res.errorMsg : "Problem Requesting Password Reset");
return;
if (!res.success) { // error!
Roo.MessageBox.alert("Error" , res.errorMsg ? res.errorMsg : "Problem Requesting Password Reset");
return;
@@
-349,9
+350,8
@@
Pman.Login = new Roo.util.Observable({
autoCreate : {tag: "input", type: "text", size: "20"}
}),
autoCreate : {tag: "input", type: "text", size: "20"}
}),
- new Roo.form.
TextFiel
d({
+ new Roo.form.
Passwor
d({
fieldLabel: "Password",
fieldLabel: "Password",
- inputType: 'password',
name: 'password',
width:200,
autoCreate : {tag: "input", type: "text", size: "20"},
name: 'password',
width:200,
autoCreate : {tag: "input", type: "text", size: "20"},