From 5e3df51ad91b63fbff048d30d46bb7bd95c8e810 Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 16 Jun 2016 10:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=96=B0=E7=89=88=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/account/login.html.erb | 21 +++++++++------------ app/views/layouts/login.html.erb | 1 + public/javascripts/new_user.js | 10 +++++----- public/stylesheets/new_user.css | 23 ++++++++++++++++++++--- 4 files changed, 35 insertions(+), 20 deletions(-) diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 9031b5167..c3b6a0946 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -52,7 +52,7 @@ $('#login_req').html(''+data.message+''); $login_correct = true; } else { - $('#login_req').html( ''+data.message+''); + $('#login_req').html( ''+data.message+''); $login_correct = false; } $('#login_req').css('display','block'); @@ -63,7 +63,7 @@ $mail.blur(function (event) { if (/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(this.value) == false){ - $('#mail_req').html( '邮件格式不对').show(); + $('#mail_req').html( '邮件格式不对').show(); $mail_correct = false; return ; } @@ -76,7 +76,7 @@ $('#mail_req').html( ''+data.message+'' ); $mail_correct = true; } else { - $('#mail_req').html( ''+data.message+'' ); + $('#mail_req').html( ''+data.message+'' ); $mail_correct = false; } $('#mail_req').css('display','block'); @@ -92,7 +92,7 @@ $passwd_correct = true; } else { - $('#passwd_req').html( ''+'<%= l(:setting_password_min_length_limit, :count => Setting.password_min_length.to_i) %>'+''); + $('#passwd_req').html( ''+'<%= l(:setting_password_min_length_limit, :count => Setting.password_min_length.to_i) %>'+''); $passwd_correct = false; } $('#passwd_req').css('display','block'); @@ -108,7 +108,7 @@ $passwd_comfirm_correct = true; } else { - $('#confirm_req').html(''+'<%= l(:setting_password_error) %>'+''); + $('#confirm_req').html(''+'<%= l(:setting_password_error) %>'+''); $passwd_comfirm_correct = false; } @@ -118,8 +118,6 @@ }); }); - -
@@ -138,12 +136,9 @@ <% end %>
@@ -197,7 +192,9 @@
  • -
  • +
    + 注册 +
    <% end %> diff --git a/app/views/layouts/login.html.erb b/app/views/layouts/login.html.erb index 18fbcfcd5..c20335b1d 100644 --- a/app/views/layouts/login.html.erb +++ b/app/views/layouts/login.html.erb @@ -15,6 +15,7 @@ <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%> +