Sha256: 9db08f18bfefeb43f9e62a839a7f236ae224d4f34475d19b8b3fb1f58a1dfacc

Contents?: true

Size: 768 Bytes

Versions: 5

Compression:

Stored size: 768 Bytes

Contents

/*
Nine
Caboose.User = function(){};

Caboose.User.add = function()
{
  $('#message').html("<p class='loading'>Adding user...</p>");
  
  $.ajax({
    url: '/users',
    type: 'post',
    data: $('#new_user_form').serialize(),
    success: Caboose.ajax_success,
    error: Caboose.ajax_error
  });
};

Caboose.User.delete = function(user_id, confirm)
{
  if (!confirm)
  {
    Caboose.confirm({
        message: "Are you sure you want to delete the user?  This can't be undone.",
        yes: function() { Caboose.User.delete(user_id, true) }
    });
    return;    
  }
  $('#message').html("<p class='loading'>Deleting user...</p>");
	
	$.ajax({
		url: '/users/' + user_id, 
		type: 'delete',
		success: Caboose.ajax_success,
		error: Caboose.ajax_error
	}); 
};
*/

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
caboose-cms-0.0.7 app/assets/javascripts/caboose/users.js
caboose-cms-0.0.5 app/assets/javascripts/caboose/users.js
caboose-cms-0.0.4 app/assets/javascripts/caboose/users.js
caboose-cms-0.0.3 app/assets/javascripts/caboose/users.js
caboose-cms-0.0.2 app/assets/javascripts/caboose/users.js