From 8fea22314ceaf9b1a3865c02e587aa5b0c4f1c38 Mon Sep 17 00:00:00 2001
From: "John Molakvoæ (skjnldsv)"
Date: Sun, 5 Nov 2017 18:14:52 +0100
Subject: Fix template order and animation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: John Molakvoæ (skjnldsv)
---
core/js/lostpassword.js | 5 ++++-
core/templates/login.php | 23 +++++++++++------------
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index bd7dc9de399..446d70d991e 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -35,6 +35,7 @@ OC.Lostpassword = {
$('#reset-password-wrapper').slideUp().fadeOut();
$('#lost-password').slideDown().fadeIn();
+ $('#lost-password-back').hide();
$('.remember-login-container').slideDown().fadeIn();
$('#submit-wrapper').slideDown().fadeIn();
$('.groupbottom').slideDown().fadeIn();
@@ -47,7 +48,8 @@ OC.Lostpassword = {
resetLink : function(event){
event.preventDefault();
- $('#lost-password').slideUp().fadeOut();
+ $('#lost-password').hide();
+ $('#lost-password-back').slideDown().fadeIn();
$('.remember-login-container').slideUp().fadeOut();
$('#submit-wrapper').slideUp().fadeOut();
$('.groupbottom').slideUp().fadeOut(function(){
@@ -118,6 +120,7 @@ OC.Lostpassword = {
// update is the better success message styling
node.addClass('update').css({width:'auto'});
node.html(OC.Lostpassword.sendSuccessMsg);
+ OC.Lostpassword.resetButtons();
},
sendLinkError : function(msg){
diff --git a/core/templates/login.php b/core/templates/login.php
index 2f6bce76e88..82827bbef03 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -51,11 +51,7 @@ script('core', 'merged-login');
-
-
- t('Wrong password. Reset it?')); ?>
-
-
+
t('Wrong password.')); ?>
@@ -66,6 +62,13 @@ script('core', 'merged-login');
+
+
+
+
--
cgit v1.2.3