Files
9minutes/app/assets/javascripts/ajax/routes.js
T
2012-12-29 01:53:06 +01:00

39 lines
875 B
JavaScript

// Artist Show Page
Path.map(hashbang+artist_path+":id").to(function(){
load_site_request(artist_path, this.params['id']);
});
// Home Page
Path.map(hashbang+home_path).to(function(){
load_site_request(home_path);
});
// Charts Page
Path.map(hashbang+charts_path).to(function(){
load_site_request(charts_path);
});
// Search Page
Path.map(hashbang+search_path+":q").to(function(){
load_site_request(search_path, this.params['q']);
});
// Sign Up Page
Path.map(hashbang+register_path).to(function(){
load_site_request(register_path);
});
// Sign In Page
Path.map(hashbang+login_path).to(function(){
load_site_request(login_path);
});
// Sign Out Page
Path.map(hashbang+logout_path).to(function(){
load_site_request(logout_path);
});
// User Show Page
Path.map(hashbang+user_path+":id").to(function(){
load_site_request(user_path, this.params['id']);
});