rescue method for js path mapping;
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -13,8 +13,16 @@ var login_path = "/login";
|
||||
var logout_path = "/logout";
|
||||
|
||||
$(document).ready(function(){
|
||||
// home path
|
||||
Path.root(hashbang+home_path);
|
||||
|
||||
// redirect non existent links
|
||||
// to the 404 page
|
||||
Path.rescue(function(){
|
||||
// TODO: link to 404 page
|
||||
alert("404: Route Not Found");
|
||||
});
|
||||
|
||||
// Setup default AJAX values
|
||||
// for future requests
|
||||
$.ajaxSetup({
|
||||
|
||||
Reference in New Issue
Block a user