Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
556 B

{
//this will give a 401 error, but made 401 exceptions forward to 'users/sign_in'
onSignOut: function(){
Ext.Ajax.request({
url: '/users/sign_out',
method: 'DELETE'
});
},
onCheckOut: function(){
Ext.Ajax.request({
url: '/api/v1/checkout',
method: 'POST',
success: function(response, opts) {
Ext.Ajax.request({
url: '/users/sign_out',
method: 'DELETE'
});
}
});
},
onChangeAccountInfo: function(){
window.location.href="users/edit";
}
}