remove whitespace at end of line
This commit is contained in:
parent
a53cfcb9d1
commit
ebbf228309
|
@ -3,7 +3,7 @@ OC.Lostpassword = {
|
||||||
sendErrorMsg : t('core', 'Couldn\'t send reset email. Please contact your administrator.'),
|
sendErrorMsg : t('core', 'Couldn\'t send reset email. Please contact your administrator.'),
|
||||||
|
|
||||||
sendSuccessMsg : t('core', 'The link to reset your password has been sent to your email. If you do not receive it within a reasonable amount of time, check your spam/junk folders.<br>If it is not there ask your local administrator.'),
|
sendSuccessMsg : t('core', 'The link to reset your password has been sent to your email. If you do not receive it within a reasonable amount of time, check your spam/junk folders.<br>If it is not there ask your local administrator.'),
|
||||||
|
|
||||||
encryptedMsg : t('core', "Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset.<br />If you are not sure what to do, please contact your administrator before you continue. <br />Do you really want to continue?")
|
encryptedMsg : t('core', "Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset.<br />If you are not sure what to do, please contact your administrator before you continue. <br />Do you really want to continue?")
|
||||||
+ ('<br /><input type="checkbox" id="encrypted-continue" value="Yes" />')
|
+ ('<br /><input type="checkbox" id="encrypted-continue" value="Yes" />')
|
||||||
+ '<label for="encrypted-continue">'
|
+ '<label for="encrypted-continue">'
|
||||||
|
@ -12,9 +12,9 @@ OC.Lostpassword = {
|
||||||
+ '<a id="lost-password-encryption" href>'
|
+ '<a id="lost-password-encryption" href>'
|
||||||
+ t('core', 'Reset password')
|
+ t('core', 'Reset password')
|
||||||
+ '</a>',
|
+ '</a>',
|
||||||
|
|
||||||
resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'),
|
resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'),
|
||||||
|
|
||||||
init : function() {
|
init : function() {
|
||||||
if ($('#lost-password-encryption').length){
|
if ($('#lost-password-encryption').length){
|
||||||
$('#lost-password-encryption').click(OC.Lostpassword.sendLink);
|
$('#lost-password-encryption').click(OC.Lostpassword.sendLink);
|
||||||
|
@ -23,7 +23,7 @@ OC.Lostpassword = {
|
||||||
}
|
}
|
||||||
$('#reset-password #submit').click(OC.Lostpassword.resetPassword);
|
$('#reset-password #submit').click(OC.Lostpassword.resetPassword);
|
||||||
},
|
},
|
||||||
|
|
||||||
sendLink : function(event){
|
sendLink : function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (!$('#user').val().length){
|
if (!$('#user').val().length){
|
||||||
|
@ -39,10 +39,10 @@ OC.Lostpassword = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
sendLinkDone : function(result){
|
sendLinkDone : function(result){
|
||||||
var sendErrorMsg;
|
var sendErrorMsg;
|
||||||
|
|
||||||
if (result && result.status === 'success'){
|
if (result && result.status === 'success'){
|
||||||
OC.Lostpassword.sendLinkSuccess();
|
OC.Lostpassword.sendLinkSuccess();
|
||||||
} else {
|
} else {
|
||||||
|
@ -54,21 +54,21 @@ OC.Lostpassword = {
|
||||||
OC.Lostpassword.sendLinkError(sendErrorMsg);
|
OC.Lostpassword.sendLinkError(sendErrorMsg);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
sendLinkSuccess : function(msg){
|
sendLinkSuccess : function(msg){
|
||||||
var node = OC.Lostpassword.getSendStatusNode();
|
var node = OC.Lostpassword.getSendStatusNode();
|
||||||
// update is the better success message styling
|
// update is the better success message styling
|
||||||
node.addClass('update').css({width:'auto'});
|
node.addClass('update').css({width:'auto'});
|
||||||
node.html(OC.Lostpassword.sendSuccessMsg);
|
node.html(OC.Lostpassword.sendSuccessMsg);
|
||||||
},
|
},
|
||||||
|
|
||||||
sendLinkError : function(msg){
|
sendLinkError : function(msg){
|
||||||
var node = OC.Lostpassword.getSendStatusNode();
|
var node = OC.Lostpassword.getSendStatusNode();
|
||||||
node.addClass('warning');
|
node.addClass('warning');
|
||||||
node.html(msg);
|
node.html(msg);
|
||||||
OC.Lostpassword.init();
|
OC.Lostpassword.init();
|
||||||
},
|
},
|
||||||
|
|
||||||
getSendStatusNode : function(){
|
getSendStatusNode : function(){
|
||||||
if (!$('#lost-password').length){
|
if (!$('#lost-password').length){
|
||||||
$('<p id="lost-password"></p>').insertBefore($('#remember_login'));
|
$('<p id="lost-password"></p>').insertBefore($('#remember_login'));
|
||||||
|
@ -77,7 +77,7 @@ OC.Lostpassword = {
|
||||||
}
|
}
|
||||||
return $('#lost-password');
|
return $('#lost-password');
|
||||||
},
|
},
|
||||||
|
|
||||||
resetPassword : function(event){
|
resetPassword : function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if ($('#password').val()){
|
if ($('#password').val()){
|
||||||
|
@ -90,7 +90,7 @@ OC.Lostpassword = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
resetDone : function(result){
|
resetDone : function(result){
|
||||||
var resetErrorMsg;
|
var resetErrorMsg;
|
||||||
if (result && result.status === 'success'){
|
if (result && result.status === 'success'){
|
||||||
|
@ -113,17 +113,17 @@ OC.Lostpassword = {
|
||||||
OC.Lostpassword.resetError(resetErrorMsg);
|
OC.Lostpassword.resetError(resetErrorMsg);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
redirect : function(msg){
|
redirect : function(msg){
|
||||||
window.location = OC.webroot;
|
window.location = OC.webroot;
|
||||||
},
|
},
|
||||||
|
|
||||||
resetError : function(msg){
|
resetError : function(msg){
|
||||||
var node = OC.Lostpassword.getResetStatusNode();
|
var node = OC.Lostpassword.getResetStatusNode();
|
||||||
node.addClass('warning');
|
node.addClass('warning');
|
||||||
node.html(msg);
|
node.html(msg);
|
||||||
},
|
},
|
||||||
|
|
||||||
getResetStatusNode : function (){
|
getResetStatusNode : function (){
|
||||||
if (!$('#lost-password').length){
|
if (!$('#lost-password').length){
|
||||||
$('<p id="lost-password"></p>').insertAfter($('#submit'));
|
$('<p id="lost-password"></p>').insertAfter($('#submit'));
|
||||||
|
|
Loading…
Reference in New Issue