mirror of https://github.com/fspc/BikeShed-1.git
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.
24 lines
556 B
24 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";
|
|
}
|
|
}
|
|
|