Files
9minutes/public/javascripts/config.js
T

42 lines
930 B
JavaScript
Raw Normal View History

// Default paths for application
// DON'T CHANGE!!!
2011-06-13 14:12:44 +02:00
var hashbang = "#!";
var artist_path = "/artists/";
var home_path = "/home";
var charts_path = "/charts";
var search_path = "/search/";
var search_autocomplete_path = "/autocomplete/";
var user_path = "/users/";
var profile_path = "/profile";
2011-06-13 14:12:44 +02:00
var register_path = "/register";
var login_path = "/login";
var logout_path = "/logout";
var favourite_path = "/favourize";
2011-06-30 06:50:38 +02:00
var search_video_path = "/search_video";
2011-07-02 17:31:04 +02:00
// root title
var documentTitle = "9minutes";
$(document).ready(function(){
// home site
Path.root("#!/home");
2011-06-06 14:25:16 +02:00
// initialize path listener
Path.listen();
2011-06-13 23:21:39 +02:00
// redirect non existent links
// to the 404 page
Path.rescue(function(){
// TODO: link to 404 page
alert("404: Route Not Found");
});
2011-06-06 14:25:16 +02:00
// Setup default AJAX values
// for future requests
$.ajaxSetup({
// 30sec timeout for each request
// timeout: 30000
});
});