0
0
Fork 0

- changed the index url for admin

- added a small javascript to make it more web 2.0
This commit is contained in:
Gibheer 2011-07-04 11:15:29 +02:00
parent 8c29826c6f
commit 1296143a97
2 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class Admin < Sinatra::Base
if session.has_key? :to_path
redirect "/admin#{session.delete(:to_path)}"
else
redirect '/admin/index'
redirect '/admin/'
end
end
end

View File

@ -0,0 +1,4 @@
$('a').live('click', function(e){
e.preventDefault();
$('#content').load($(this).attr('href') + ' #content');
})