Sha256: 3a213df384ce685efadf236d5d726b6c1e0c2373c5808af777d1826e63dfbf1c
Contents?: true
Size: 458 Bytes
Versions: 23
Compression:
Stored size: 458 Bytes
Contents
function login() { $('#message').html("<p class='loading'>Logging in...</p>"); $.ajax({ url: '/login', type: 'post', data: $('#login_form').serialize(), success: function(resp) { if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>"); else if (resp.redirect != false) window.location = resp.redirect; }, error: function() { $('#message').html("<p class='note error'>Error</p>"); } }); }
Version data entries
23 entries across 23 versions & 1 rubygems