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

Version Path
caboose-cms-0.1.101 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.98 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.97 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.96 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.93 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.92 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.91 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.78 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.35 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.34 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.7 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.6 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.5 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.4 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.3 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.2 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.1 app/assets/javascripts/caboose/login.js
caboose-cms-0.1.0 app/assets/javascripts/caboose/login.js
caboose-cms-0.0.7 app/assets/javascripts/caboose/login.js
caboose-cms-0.0.5 app/assets/javascripts/caboose/login.js