Don't hide the sign in button and remember me box on the sign in page

This commit is contained in:
Raphael Sofaer 2011-08-09 15:10:27 -07:00
parent 0da8445b2f
commit 58384f82c8

View file

@ -11,18 +11,6 @@ $(document).ready( function(){
forgotPass = $("#forgot_password_link"),
controls = $("#controls");
var contentFilled = function(){
return($('#user_username').val() != "" && $('#user_password').val() != "");
}
var checkSubmitAvailability = function() {
if(contentFilled()){
controls.removeClass('hidden');
}else{
controls.addClass('hidden');
}
}
$("#login").center();
$(window).resize(function(){
$("#login").center();
@ -34,13 +22,5 @@ $(document).ready( function(){
forgotPass.addClass('hidden');
controls.addClass('hidden');
});
$(document).keyup(checkSubmitAvailability);
// Check if the browser has pre-filled the form
checkSubmitAvailability();
// Check it again
setTimeout(checkSubmitAvailability, 1000);
});