|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<%= stylesheet_link_tag 'new_user'%>
|
|
|
|
|
<%= stylesheet_link_tag 'leftside'%>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
// $(document).ready(function(){
|
|
|
|
|
// $("#loginSignButton").click(function(){
|
|
|
|
@ -12,6 +12,20 @@
|
|
|
|
|
// $("#signUpBox").css({display:"none"});
|
|
|
|
|
// $("#loginInBox").css({display:"block"});
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// $(function(){
|
|
|
|
|
// $("#username").keypress(function(e){
|
|
|
|
|
// alert(11);
|
|
|
|
|
// if (e.keyCode == '13') {
|
|
|
|
|
// $('#main_login_form').submit();
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// $("#password").keypress(function(e){
|
|
|
|
|
// if (e.keyCode == '13') {
|
|
|
|
|
// $('#main_login_form').submit();
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
@ -162,6 +176,12 @@
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function user_name_keypress(e){
|
|
|
|
|
if (e.keyCode == '13') {
|
|
|
|
|
$('#main_login_form').submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<div class="loginContentContainer">
|
|
|
|
|
<div class="loginContent">
|
|
|
|
@ -186,7 +206,7 @@
|
|
|
|
|
<%= back_url_hidden_field_tag %>
|
|
|
|
|
<div class="mb20">
|
|
|
|
|
<%= text_field_tag 'username', params[:username], :tabindex => '1' ,
|
|
|
|
|
:class=>'loginSignBox',:placeholder=>'请输入邮箱地址或昵称'%>
|
|
|
|
|
:class=>'loginSignBox',:placeholder=>'请输入邮箱地址或昵称', :onkeypress => "user_name_keypress(event);"%>
|
|
|
|
|
<!--<input type="text" placeholder="请输入邮箱地址或昵称" class="loginSignBox" />-->
|
|
|
|
|
</div>
|
|
|
|
|
<% if Setting.openid? %>
|
|
|
|
@ -196,7 +216,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<div>
|
|
|
|
|
<!--<input type="text" placeholder="请输密码" class="loginSignBox" />-->
|
|
|
|
|
<%= password_field_tag 'password', nil, :tabindex => '2',:class=>'loginSignBox' ,:placeholder=>'请输密码'%>
|
|
|
|
|
<%= password_field_tag 'password', nil, :tabindex => '2',:class=>'loginSignBox' ,:placeholder=>'请输密码', :onkeypress => "user_name_keypress(event);"%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="loginSignOption">
|
|
|
|
|
<% if Setting.autologin? %>
|
|
|
|
|