Sha256: e28257d852cca1558edccb3d0e7d74d6133a63cb891ed00fa18cf4d30b5bbb1a

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

$('#re_content').html('<%=escape_javascript(render('/users/login_form'))%>');

$('#user_login_submit').closest('div.re-form-button').re_form_button(); 

$("#user_login_cancel_wrapper").show();
$("#user_login_form").submit(function() { return false; });

$("#user_login_cancel").live('click', function() {
  $.fancybox.close();
  return false;
});  

$("#user_login_submit").live('click', function() {
  $.re_block();    
	$.post($('#user_login_form').attr('action'), $('#user_login_form').serialize(), null, 'script');
  return false;
});  

jQuery.re_error_message = function(message) {
	$('#login_error').html(message);
	$('#login_error').show();
}

<%= re_alert_js %>

$.re_unblock();
$.fancybox({ href: '#re_content'});

$('#user_name').focus();
$('#user_password').bind('keypress', function(e) {
  var code = (e.keyCode ? e.keyCode : e.which);
  if (code == 13) { //Enter keycode
 		$.re_block();    
		$.post($('#user_login_form').attr('action'), $('#user_login_form').serialize(), null, 'script');
    return false;      
  }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rules_engine_users-0.0.3 rails_generators/templates/app/views/users/login_form.js.erb
rules_engine_users-0.0.2 rails_generators/templates/app/views/users/login_form.js.erb